create_or_update_flow
Create a new Power Automate flow or update an existing one from a definition object. Use dry-run to preview changes before writing.
Instructions
Create a new flow or update an existing one from a definition object. dryRun is the default — pass dryRun:false to actually write. Get the definition shape from get_flow.
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": {
"environmentId": "<environmentId>",
"definition": "<definition>"
},
"name": "create_or_update_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default true — preview only. Pass false to actually write. | |
| flowId | No | Flow ID to update. Omit to CREATE a new flow. | |
| definition | Yes | The workflow definition object (properties.definition from get_flow). | |
| displayName | No | Display name. Required when creating. | |
| environmentId | Yes | Environment ID. | |
| connectionReferences | No | Connection references map (properties.connectionReferences from get_flow). |