Update a flow
update_flowReplaces the whole content of an existing flow with a blueprint, usually one from get_flow that you changed. Send the complete flow, not only the changed part. Call with dry_run true first. A copy of the current flow is saved first and its snapshot_id is returned, so restore_snapshot can undo the change. Keep placeholders like <<YOUR_API_KEY>> exactly where get_flow put them; a placeholder moved anywhere else is refused.
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": {
"flow_id": "<flow_id>",
"blueprint": "<blueprint>"
},
"name": "update_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | true: check only and return every problem, nothing is saved. Use true first. | |
| flow_id | Yes | A flow_id from list_flows. | |
| blueprint | Yes | The blueprint: YAML or JSON text, or the same as an object (get_blueprint_spec has the format). At most 256 KB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||