Build a flow definition from steps
cs_build_flow_definitionCompose a Power Automate cloud flow definition from a step spec without touching an environment. Returns the definition, connection references, and notes to create or update flows.
Instructions
Compose a Power Automate cloud flow definition from a step spec, without touching any environment: a trigger (agent-callable by default, or manual, HTTP, schedule or a connector trigger) plus steps (connector operations, HTTP calls, conditions, loops, scopes, variables, compose, terminate, response, or raw JSON). Steps run in order. Returns the definition, the connection references it needs and any notes, and can write it to a file. Feed the same spec to cs_create_flow to create the flow, or cs_update_flow to replace an existing one. Use cs_list_connectors and cs_describe_connector to find connector ids, operation ids and their parameters first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| steps | No | Steps in order; each waits for the previous one to succeed | |
| outputs | No | What the flow answers with (agent-callable and HTTP flows) | |
| trigger | No | Default: 'agent' (When an agent calls the flow) | |
| outputFile | No | Write the definition JSON here as well | |
| description | No | ||
| connectionReferencePrefix | No | Prefix for generated connection reference names, usually your publisher prefix |