phone_flow_run
Run one installed or draft iPhone automation flow once, validate its step sequence, and report completed/applied counts plus the first failed step.
Instructions
Run one flow exactly once — an installed registry id, or a flow file path (*.json, e.g. a phone_flow_draft you are proving before publishing). A flow that declares outputs returns what it read as top-level outputs (e.g. today's steps); verify=true also checks their shape against the recorded fixture. A read_only/navigation flow that misses an element runs its other-language variant once (fallback_from says so): the daemon validates the whole sequence, holds one control lock, and stops at the first failed step. The happy path costs one tool call and zero screenshots. Requires phone_status drivable=true. Pass the flow's declared inputs; a flow declared risk=side_effect is refused unless confirm=true; a flow whose compat is broken or incompatible for the installed app version is refused unless force=true. The result reports completed/applied counts and the failed step; retry_safe=false means DO NOT replay — inspect phone_elements, repair the flow, do not guess. Unverified flows (verified=false in phone_flow_list) may need a checkpoint screenshot afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Registry id such as `health/export-all` (see phone_flow_list), or the path of a flow file (`*.json`) — e.g. a draft saved by phone_flow_draft, to prove it on the phone before publishing. | |
| force | No | Run even when compat is `broken` or `incompatible` for this phone. | |
| inputs | No | Runtime string inputs declared by the flow. Values are used for this run only and never persisted. Never pass passwords, codes, or private message content. | |
| verify | No | Compare what the flow read (its `outputs`) against the recorded result shape; `verify.ok=false` names what drifted. | |
| confirm | No | Required for flows declared `risk: side_effect`. Set true only after the user confirmed the target and inputs. | |
| instance | No | Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure. | |
| write_fixture | No | With verify: record this run's output shape as the fixture (types only). Only after checking the values are right. |