1.7 KiB
1.7 KiB
Workflow Lifecycle Reference
Use this when an agent needs to go from available capabilities to a saved, validated, runnable deployment.
Primary Path
- List sources.
- MCP:
wf.admin.list_sources - CLI:
wf cap list --format ids
- MCP:
- List workflow capabilities.
- MCP:
wf.workflow.list_capabilities - CLI:
wf cap list
- MCP:
- Inspect one capability.
- MCP:
wf.workflow.inspect_capability - CLI:
wf cap inspect <name>
- MCP:
- Bootstrap a draft workspace.
- MCP:
wf.workflow.create_draft_workspace_from_capability - CLI:
wf draft create-from-capability <workspace_id> <capability>
- MCP:
- Inspect/patch/validate the workspace until valid.
- Prefer focused helpers when available.
- Use JSON Patch only for general edits.
- Save an artifact.
- Full workflow:
create_artifact_from_workspace - Reusable wrapper:
create_wrapper_from_workspace
- Full workflow:
- Save and validate a deployment.
- Run the deployment.
- Inspect the run summary first; read bounded traces only when needed.
Object Model
- Source: owner of capabilities, such as
wf.stdoreverything.default. - Workflow capability: graph-ready
NodeSpecor saved wrapper artifact. - Artifact: immutable saved workflow or wrapper.
- Deployment: mutable binding from artifact version to concrete sources.
- Run: durable stopped execution record with status, output, and trace count.
Result Handling
run_deployment returns compact status by default. Capture run_id even for
completed or failed runs. Use:
inspect_runfor compact stored result.read_run_tracefor explicit debug slices, for example{"start": 0, "limit": 25}.resume_runonly for interrupted runs.
Do not ask for unbounded traces.