Edit flow
edit_flowEdits the flow of a command, an event listener, or a button or select menu of a message template, and saves it. Pass one of command_id, event_listener_id or message_id. If an edit or the resulting flow has problems, nothing is saved and the problems are returned.
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": {
"app_id": "<app_id>",
"edits": "<edits>"
},
"name": "edit_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | The edits to make to the flow, applied in order. | |
| app_id | Yes | The ID of the app, from list_apps. | |
| command_id | No | ||
| message_id | No | ||
| flow_source_id | No | With message_id: the flow_source_id of the button or select menu. | |
| event_listener_id | No |