flow-add-step
Execute an MCP tool and record its action as a step in an active flow recording. Use to capture each action during recording.
Instructions
Execute one MCP tool and record its flow step, in the flow named by name + project_root. Use when recording a flow and you want each action run and captured; the recording must already be open.
A coordinate gesture-tap records as a portable tap selector step; restart-app as a launch.
Returns { message, stepCount, recorded, savedTo }; recorded, not the status, says whether a step was appended. Fails with an error, recording nothing. Call recording tools, including flow-add-script, directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Tool arguments as a JSON string, e.g. '{"udid": "ABC", "x": 0.5, "y": 0.3}'. Omit for tools with no arguments. | |
| name | Yes | Name of the flow being recorded — the one passed to flow-start-recording. | |
| command | Yes | MCP tool to execute and record, for example "gesture-tap". Do not pass a flow directive or a recording tool. Call flow-add-script directly for a requested script step. | |
| delayMs | No | Milliseconds to sleep before executing this step during replay. | |
| project_root | Yes | Absolute path to the project root of the flow being recorded — the same value passed to flow-start-recording. Together with `name` it identifies which recording this step belongs to. |