workflow_apply_edits
Applies a batch of edits to the open draft of one workflow in a single change. Each edit is one of: add_node, update_node, delete_node, add_edge or delete_edge, sent as a JSON list in "operations"; expectedVersion is required. Edits can remove steps, which is why it is marked destructive. Nothing runs, and no connected app is contacted.
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>",
"operations": "<operations>"
},
"name": "workflow_apply_edits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | JSON array of add_node, update_node, delete_node, add_edge, or delete_edge operations to apply atomically as one workflow version | |
| workflowId | Yes | The workflow ID | |
| experimentId | No | Open improvement ID for the current agent task | |
| versionLabel | No | Label for the single new version | |
| expectedVersion | No | Reject the edit if the latest version no longer matches |