Change automation steps
edit_automationRead or change the settings of the steps of one automation. Get its id from list_automations. mode "read" (default) returns how it starts, each step, and each field with its value. A field of a kind that can hold a secret, a connection, or a value the schema does not describe reads as "set" or "not set": its value stays in Taskade. To change fields, pass edits (step, field, new value) for fields with editable: true. mode "preview" shows each field before and after, with no change. Show that to the user. mode "apply" with confirm: true and the updatedAt of your read writes the change after the user says yes. If the automation changed after that read, the apply is refused as stale and nothing changes. The next run uses the change. It returns an undo call with the prior values, which is refused as stale after any later change. A change that leaves an On or a complete automation incomplete is refused. To add or remove steps, connect an account, change a hidden field, or pick a different start, open the automation in Taskade.
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": {
"spaceId": "<spaceId>",
"flowId": "<flowId>"
},
"name": "edit_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "read" (default), "preview" (check a change), or "apply" (write it) | read |
| edits | No | The field changes, at most 20. | |
| flowId | Yes | Automation ID from `list_automations` | |
| confirm | No | true with mode "apply" writes the change. Without it nothing changes. | |
| spaceId | Yes | Space ID | |
| updatedAt | No | The `updatedAt` of your read. Required with mode "apply" and confirm: true. The change is refused if the automation changed after that read. |