update_flow_definition
Replaces a Power Automate flow's complete definition after you edit it, without patch semantics. Use it to apply full flow changes and carry over or modify connection references.
Instructions
Replace a flow's definition. Send the COMPLETE definition - there is no patch semantics.
Standard use: get_flow -> edit the returned definition -> pass it here.
connection_references can be omitted on a flow already bound with bind_connection:
the tool reads the live bindings and carries them over (get_flow shows {} for them,
so there is nothing to copy by hand). Pass it explicitly only to CHANGE a binding,
shaped like
{"shared_office365": {"connectionName": "<32-hex connection id>",
"source": "Embedded",
"id": "/providers/Microsoft.PowerApps/apis/shared_office365"}}.
WHICH FLOWS THIS REACHES, corrected 2026-11-03. The old note here said any flow
bound in the maker portal was out of reach. Measured 2026-07-28 on a flow built in
My flows in the portal: its references come back with source "Embedded", and a PATCH carrying
them succeeds. Keep the action hosts on connectionName exactly as stored.
The real limit is SOLUTION flows. Their connections are Dataverse connection
references: the PATCH wants connectionReferenceName, and the reference itself
cannot be minted through this endpoint. For those, use
update_solution_flow_definition in extras.py, which writes the Dataverse row.
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>",
"definition": "<definition>"
},
"name": "update_flow_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_id | Yes | ||
| definition | Yes | ||
| connection_references | No |
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 |