Workflows: edit
workflows_editChanges an existing neonloops workflow's draft: adds, configures, connects, removes or renames steps and edges, tidies the layout, and sets the name, description, status, project or cost cap. Make a draft with workflows_create and read it with workflows_get first; runs_test_draft tries the result and workflows_publish makes it live. Operations run in order and save in one write against the revision you pass: when one is refused none applies, and a change made since your read is never overwritten. Settings are saved after the checks and before the operations. A removed step is gone; re-adding it makes a new step and id. The answer gives the new revision, the ids of new steps and edges, and whether a run would accept the graph.
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": "workflows_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | No | Needed with operations: the revision from workflows_get or the previous workflows_edit answer, passed back exactly as it came. If the graph changed since, the operations are refused, not merged. Settings alone need none. | |
| settings | No | Settings to change. They are saved once the revision and every operation have passed their checks, and before the operations are written: a refused check saves nothing, and a write refused after that leaves them saved. | |
| operations | No | Graph changes, applied in this order and saved in one write: all of them, or none when one is refused (the refusal names its index). A step added here is connected or configured in a later call, by the id this answer returns. | |
| workflow_id | Yes | The workflow to change. |