Runs: test draft
runs_test_draftTries out a neonloops workflow before it goes live: runs the whole draft of a workflow that is not published right now in simulate mode, where every step executes and the ones that act outside neonloops (sending, posting, writing) are neutralized, then waits briefly and reports how it went. Use it after building or editing with workflows_edit and before workflows_publish; a published workflow is refused, and a person runs it from the app's Run button. Simulate cannot be turned off, and the run is real otherwise: it calls models, spends the workspace's budget and is recorded as a run. It is often still running when the call returns, which is normal: read the outcome with runs_get using the id. At most 10 test runs per 5 minutes per token.
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": "runs_test_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Values for the Start step's declared input fields, by name. Omit for a Start with none. A File field takes { "$file": "<id>" } of a file you uploaded; ids of files uploaded by others are refused. | |
| workflow_id | Yes | The workflow whose draft to run; it must not be published right now. The ids are in workflows_list. | |
| start_node_id | No | Which Start step fires, on a draft with more than one; required in that case. |