Update a cloud flow
cs_update_flowUpdate a flow's name, description, or definition in Copilot Studio by providing steps or a ready-made definition, then confirm to apply the changes.
Instructions
Change a flow's name, description or definition in the environment. Pass 'steps' (and optionally 'trigger') to rebuild the definition the way cs_build_flow_definition does, or 'definition' for a ready-made one; either replaces properties.definition inside the existing clientdata and keeps the connection references. 'clientData' replaces the whole document. Read the current one with cs_get_flow includeDefinition first. Managed flows cannot be edited in place; edit them in their source environment or through a solution. Changes a live environment: requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| steps | No | Steps in order; each waits for the previous one to succeed | |
| flowId | Yes | Flow (workflow) id | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| outputs | No | What the flow answers with (agent-callable and HTTP flows) | |
| trigger | No | Default: 'agent' (When an agent calls the flow) | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| clientData | No | The whole clientdata document; overrides 'definition' | |
| definition | No | Power Automate definition object (properties.definition), instead of steps | |
| description | No | ||
| dataverseUrl | No | Dataverse URL; default: from the workspace or the environment | |
| environmentId | No | Power Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID. | |
| connectionReferences | No | Connection reference entries to add or explicitly replace; existing entries are otherwise preserved | |
| connectionReferencePrefix | No | Prefix for generated connection reference names, usually your publisher prefix |