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.
Read the structured result
Section titled “Read the structured result”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.
Inspect the run
Section titled “Inspect the run”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.
Read the admitted script
Section titled “Read the admitted script”The response includes this resource URI:
Admitted workflow script · MCP resource URI
workflow://runs/{runId}/scriptOpen 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.
Continue after the first run
Section titled “Continue after the first run”Use these guides next: