Test a workflow on sample data
test_run_draftRun a workflow once as a test: steps that read from connected apps get realistic sample data, and steps that send messages, change things in apps or wait for a person are switched off, so nothing reaches anyone. Use it to prove a change works and see which step breaks. It costs money like a run (with a cost cap): call it first without approved to get the cost, and only call again with approved: true after the person says yes. Then call get_test_run until done is true; check_test_run scores the result and says what to improve.
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": "test_run_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Start input values. Inputs left out use their example value or a sample. | |
| approved | No | true only after the person has agreed to the test run and its cost. | |
| workflow_id | Yes | The workflow to test. |