phone_flow_draft
Converts recorded phone actions into a draft flow document and returns a todo list. Optionally saves and validates the new flow file for replay.
Instructions
Turn what you just did on the phone into a flow. The daemon records every action it applied in the current app (single actions and phone_run_steps batches, not flow runs); this returns that trail as a flow v1 document (snapshot taps become label/identifier locators, typed text becomes named inputs and is never included) plus a todo list of what to fix. Call it when a response carried flow_suggestion, or after any multi-step task with no matching flow — but ASK THE USER before saving. With save_as, the draft is written to that new file and validated; fix the todo items, prove it with phone_flow_run(id=), then publish only with the user's OK.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_as | No | Optional path to write the draft flow to (a new `.json` file; existing files are never overwritten). It is validated after writing. | |
| instance | No | Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure. |