test_run_workflow
Test a workflow on one task. PRO+ feature (automations). mode "rehearsal" writes nothing: it returns the steps the workflow would take on the task and what each would do. mode "live" (the default) writes a WorkflowRun with workflowName suffixed "(test)" and runs the graph end-to-end for real, returning the new runId (list_workflow_runs monitors it). taskId names the task, which must be in the workflow's project (any visible project for an org-wide workflow); without it the newest task in scope is used. Permission: automation.manage on the workflow's project (or org MANAGER+ for org-wide workflows).
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": {
"workflowId": "<workflowId>"
},
"name": "test_run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| taskId | No | ||
| workflowId | Yes |