get_flow
Retrieve a flow's complete JSON definition, including trigger and action names, before updating it; the API requires sending the entire modified definition.
Instructions
Get one flow with its full definition - the JSON behind the designer's Code view.
Returns the trigger names, action names, and the complete definition dict. Call this before update_flow_definition: the API has no partial update, so you must send the whole definition back, modified.
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>"
},
"name": "get_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| actions | No | ||
| flow_id | No | ||
| modified | No | ||
| triggers | No | ||
| warnings | No | ||
| definition | No | ||
| display_name | No | ||
| missing_connections | No | ||
| previous_definition | No |