Edit flow
edit_flowApply a plain-language edit instruction to an existing Wavelength flow, for example 'add Snowflake after Fivetran'. Saves a versioned snapshot labeled 'Edited by AI agent'. Returns the new node and edge counts and a link to open it.
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>",
"instruction": "<instruction>"
},
"name": "edit_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_id | Yes | The id of the flow to edit. | |
| instruction | Yes | A plain-language edit instruction, for example 'add Snowflake after Fivetran'. |