Run Workflow
run_workflowExecute a runnable PDF workflow by passing workflow ID and input files, returning processed outputs such as extracted invoice data or agent run results.
Instructions
Start a run of a runnable workflow you authored (the write counterpart to view_workflow_run). Pass the workflow_id from draft_workflow and inputs (e.g. {files:["doc-…"]} or {document_id:"doc_…"}). Catalog/step-definition invoice pipelines may surface waiting_for_review; agent workflow scripts run through the hosted JS controller harness and return controller_output plus per-agent outputs and event stream when complete. Same as POST /v1/runs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflow_id": "<workflow_id>"
},
"name": "run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Run inputs, e.g. { files: ["doc-…"] } for invoice extraction (the documents to process). | |
| workflow_id | Yes | Workflow id (wf_…) to run, as returned by draft_workflow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||