flow-add-step
Capture a tool execution as a step in an active flow, translating taps with stable identifiers into portable selectors and restart-app into launch steps for self-contained e2e flows.
Instructions
Execute a tool call and record it as a step in the active flow. Use when recording a flow with flow-start-recording and you want to run and capture each action. A coordinate gesture-tap is recorded as a portable tap: { selector } step when the tapped element has stable text/identifier (otherwise coordinates are kept with a warning); a restart-app is recorded as a launch step (record one FIRST to make the flow a self-contained e2e flow). Returns { message, toolResult, flowFile } on success. If it fails an error is returned and nothing is recorded.
If a step was recorded by mistake, edit the .yaml file directly to remove it.
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. | |
| command | Yes | MCP tool name (e.g. "tap", "screenshot", "launch-app") | |
| delayMs | No | Milliseconds to sleep before executing this step during replay. |