Change a workflow step
edit_stepChange one step: its name, settings (only the fields passed change; for an app step, integration_arguments are merged and null removes one), its messages (prompt steps; they replace the old ones), its app action, or the agent an agent step keeps on the step (agent changes only the fields passed; new_agent replaces it; settings.agent_id switches to a saved agent). Read it with get_step first. Start inputs are changed with update_workflow. The change is saved as a version: the answer's undo.version_id restores the steps from before it.
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": {
"workflow_id": "<workflow_id>",
"step_id": "<step_id>"
},
"name": "edit_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| agent | No | Agent steps that keep their agent on the step (get_step shows it under agent): the fields to change; the rest stay. Same fields as new_agent. | |
| step_id | Yes | The step id, e.g. "step_2". | |
| messages | No | ||
| settings | No | Field names and new values (get_step_type). | |
| new_agent | No | Agent steps only: the agent this step uses, kept on the step and not saved in the agents library (use this for an agent only this workflow needs; use settings.agent_id for an existing agent from search_agents, not both). Hosted research tools only (enabled_mcp_tools); an agent that needs a connected app, knowledge base or sub-agent must be a saved agent. The person can save it as a real agent later with Edit agent in the editor. | |
| app_action | No | A different action of the same app (search_actions). | |
| workflow_id | Yes |