Skip to content
Search is loading.

Inspect the result

Available now Terminal outcomes and bounded inspection are available through the workflow tool.

The foreground response contains the full authored result. Before you use that result, read status.

For the first workflow, result has this shape:

first-inspection.workflow.js · structured result

{
"summary": "The CLI command definitions are in the workflows package CLI source.",
"files": ["packages/workflows/src/cli.ts"],
"nextStep": "Open the CLI source. Inspect each subcommand branch."
}

The inspected project determines the values. The property names come from the workflow schema.

Send this payload through the workflow tool:

workflow tool · inspect request

{
"action": "inspect",
"runId": "mabc1234-k9x2pq",
"lastN": 10,
"labelGlob": "inspect-*",
"logLines": 20
}

Replace the example run ID with the returned runId.

Inspection returns a bounded status snapshot. It does not run or resume the workflow.

The snapshot includes lifecycle status, phases, compact call previews, and a redacted log tail. Use calls[].index to identify a call.

The response includes this resource URI:

Admitted workflow script · MCP resource URI

workflow://runs/{runId}/script

Open the resource through a host that supports MCP resources. The resource contains the admitted JavaScript without changes.

The resource is available while its run record is readable. If you edit the source file, this resource does not change.

Use these guides next: