flow-add-step
Record a tool call as a step in the active flow, capturing each action and its result during flow recording.
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. Returns { message, toolResult, flowFile } on success. If it fails an error is returned and nothing is recorded. Error if the tool name is not found in the registry or arguments are invalid JSON. 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. |