Skip to main content
Glama

phone_run_steps

Destructive

Execute several phone actions in one validated batch, stop at the first failure, and return the screen the batch ends on for verification.

Instructions

THE DEFAULT WAY TO ACT: run several steps in ONE call and get the screen it ended on back (observe, default on): one turn, not one per tap. The daemon validates the whole batch, holds one lock, stops at the first failure. Single-action tools are for exploring. Guard screen changes with wait_for; never batch an unverified irreversible step. The steps are exactly a saved flow's steps: on flow_suggestion ask the user about phone_flow_draft. retry_safe=false: DO NOT replay.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "steps": "<steps>"
    },
    "name": "phone_run_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesOrdered steps (max 24); validated as a whole first, stops at the first failure.
observeNoDefault true: reply with the screen the batch ended on (`snapshot`, `elements`, `alert`); false when you will not look at it.
instanceNodaemon instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.29.2
    • changedInput schema / $defs / PhoneStep / oneOf
      Previous value: -[
      -  {
      -    "description": "Tap normalized coordinates; prefer `tap_locator` when the target has\na label or identifier.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "kind": {
      -        "const": "tap"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Long-press normalized coordinates (duration_ms default 600).",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "duration_ms": {
      -        "default": 600,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "longpress"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Hold 2–5 normalized points at once (duration_ms default 1000).",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "duration_ms": {
      -        "default": 1000,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "multi_longpress"
      -      },
      -      "points": {
      -        "items": {
      -          "$ref": "#/$defs/PhoneHoldPoint"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "points"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Two-finger pinch around normalized (x,y) (default the screen centre):\n`scale` below 1 zooms out (fingers close), above 1 zooms in (fingers\nopen); 0.2–5, not within 0.05 of 1. `angle` is the finger line in\ndegrees (0 = horizontal); `spread` the wider finger gap as a fraction\nof the shorter screen side (0.1–0.9, default 0.6); duration_ms\n100–2000, default 500. For a stronger zoom, repeat the step.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "angle": {
      -        "default": 0,
      -        "type": "number"
      -      },
      -      "duration_ms": {
      -        "default": 500,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "pinch"
      -      },
      -      "scale": {
      -        "type": "number"
      -      },
      -      "spread": {
      -        "default": 0.6,
      -        "type": "number"
      -      },
      -      "x": {
      -        "default": 0.5,
      -        "type": "number"
      -      },
      -      "y": {
      -        "default": 0.5,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "scale"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Swipe from (x1,y1) to (x2,y2), normalized; duration_ms default 300.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "swipe"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Hold hold_ms (500), then drag: x1/y1→x2/y2, or 2–16 `points` with a\ndwell_ms each; duration_ms (300) is travel per segment; total ≤ 10 s.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "hold_ms": {
      -        "default": 500,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "drag"
      -      },
      -      "points": {
      -        "items": {
      -          "$ref": "#/$defs/PhoneDragPoint"
      -        },
      -        "type": "array"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Tap one exact, unique accessibility label.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "kind": {
      -        "const": "tap_label"
      -      },
      -      "label": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Tap the single element matching every locator field; zero or several\nmatches send nothing.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when nothing matches (screens that appear\nonly sometimes: \"Not now\", \"Skip\").",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "tap_locator"
      -      },
      -      "locator": {
      -        "$ref": "#/$defs/PhoneElementLocator"
      -      },
      -      "via": {
      -        "description": "`point` taps the live frame's centre instead of XCUIElement's\nclick (custom controls that ACK and do nothing); default `element`.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "locator"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Type Unicode text into the focused field; clear=true empties it first.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "budget_ms": {
      -        "description": "Typing budget, 6000..15000 ms.",
      -        "maximum": 15000,
      -        "minimum": 6000,
      -        "type": "integer"
      -      },
      -      "clear": {
      -        "default": false,
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "type"
      -      },
      -      "text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Continue the unsent suffix of a type step with its single-use token.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "continue_token": {
      -        "maxLength": 64,
      -        "minLength": 64,
      -        "pattern": "^[0-9a-f]{64}$",
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "type_continue"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "continue_token"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Send one device key (return, escape, space, tab, delete, up, down,\nleft, right).",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "kind": {
      -        "const": "key"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "`home` or `spotlight`.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "kind": {
      -        "const": "shortcut"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Scroll as `phone_scroll`: normalized anchor x,y; deltas dx,dy in\npoints, positive dy reveals content below.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "kind": {
      -        "const": "scroll"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Launch or foreground an app: exactly one of `bundle` (bundle id) or\n`app` (name, resolved as phone_apps does; ambiguous or unknown names\nare refused with candidates, nothing sent).",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "app": {
      -        "type": "string"
      -      },
      -      "bundle": {
      -        "type": "string"
      -      },
      -      "fresh": {
      -        "description": "Quit first so it opens on its first screen (where recorded flows\nstart).",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "launch_app"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Open a link with the app iOS assigns it. http/https always; other\nschemes only if IPHONE_USE_ALLOW_URL_SCHEMES allows them. Leaves the\ncurrent app: guard the next screen with `wait_for`.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "kind": {
      -        "const": "open_url"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Navigate back inside the current app.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "kind": {
      -        "const": "back"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Press a system-alert button natively — the only path that acts on one\n(taps on alert buttons ACK without effect). Exact `button` text, or\n`action: accept|dismiss`. Fails when no alert is showing.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "button": {
      -        "type": "string"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no alert is up (prompts that appear\nonly sometimes: \"Allow Paste\").",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "alert"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Select a value in a native picker wheel.",
      -    "properties": {
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "column": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "picker"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Invoke an affordance (toggle, increment, decrement, adjust, …; see\nphone_capabilities perform_actions) on `element`+`snapshot` from\nphone_elements; not for saved flows. `value` only with adjust;\n`duration_ms` only with menu/force_press. Verify with wait_for.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "$ref": "#/$defs/after_ms"
      -      },
      -      "duration_ms": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "element": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "perform"
      -      },
      -      "snapshot": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "element",
      -      "snapshot",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Poll until `expect` holds (timeout_ms default 15000, poll_ms 250);\ntimeout_ms:0 is one 500 ms observation without polling.",
      -    "properties": {
      -      "expect": {
      -        "$ref": "#/$defs/PhoneUiExpectation"
      -      },
      -      "kind": {
      -        "const": "wait_for"
      -      },
      -      "poll_ms": {
      -        "default": 250,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "timeout_ms": {
      -        "default": 15000,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "expect"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Fixed pause; prefer `wait_for`.",
      -    "properties": {
      -      "kind": {
      -        "const": "pause"
      -      },
      -      "ms": {
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Tap normalized coordinates; prefer `tap_locator` when the target has\na label or identifier.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "tap"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Long-press normalized coordinates (duration_ms default 600).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 600,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "longpress"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Hold 2–5 normalized points at once (duration_ms default 1000).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 1000,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "multi_longpress"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneHoldPoint"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "points"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Two-finger pinch around normalized (x,y) (default the screen centre):\n`scale` below 1 zooms out (fingers close), above 1 zooms in (fingers\nopen); 0.2–5, not within 0.05 of 1. `angle` is the finger line in\ndegrees (0 = horizontal); `spread` the wider finger gap as a fraction\nof the shorter screen side (0.1–0.9, default 0.6); duration_ms\n100–2000, default 500. For a stronger zoom, repeat the step.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "angle": {
      +        "default": 0,
      +        "type": "number"
      +      },
      +      "duration_ms": {
      +        "default": 500,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "pinch"
      +      },
      +      "scale": {
      +        "type": "number"
      +      },
      +      "spread": {
      +        "default": 0.6,
      +        "type": "number"
      +      },
      +      "x": {
      +        "default": 0.5,
      +        "type": "number"
      +      },
      +      "y": {
      +        "default": 0.5,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "scale"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Swipe from (x1,y1) to (x2,y2), normalized; duration_ms default 300.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "swipe"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x1",
      +      "y1",
      +      "x2",
      +      "y2"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Hold hold_ms (500), then drag: x1/y1→x2/y2, or 2–16 `points` with a\ndwell_ms each; duration_ms (300) is travel per segment; total ≤ 10 s.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "hold_ms": {
      +        "default": 500,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "drag"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneDragPoint"
      +        },
      +        "type": "array"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Tap one exact, unique accessibility label.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "tap_label"
      +      },
      +      "label": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Tap the single element matching every locator field; zero or several\nmatches send nothing.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when nothing matches (screens that appear\nonly sometimes: \"Not now\", \"Skip\").",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "tap_locator"
      +      },
      +      "locator": {
      +        "$ref": "#/$defs/PhoneElementLocator"
      +      },
      +      "via": {
      +        "description": "`point` taps the live frame's centre instead of XCUIElement's\nclick (custom controls that ACK and do nothing); default `element`.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "locator"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Type Unicode text into the focused field; clear=true empties it first.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "budget_ms": {
      +        "description": "Typing budget, 6000..15000 ms.",
      +        "maximum": 15000,
      +        "minimum": 6000,
      +        "type": "integer"
      +      },
      +      "clear": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "type"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Continue the unsent suffix of a type step with its single-use token.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "continue_token": {
      +        "maxLength": 64,
      +        "minLength": 64,
      +        "pattern": "^[0-9a-f]{64}$",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "type_continue"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "continue_token"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Send one device key (return, escape, space, tab, delete, up, down,\nleft, right).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "key"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "`home` or `spotlight`.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "shortcut"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Scroll as `phone_scroll`: normalized anchor x,y; deltas dx,dy in\npoints, positive dy reveals content below.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "const": "scroll"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Launch or foreground an app: exactly one of `bundle` (bundle id) or\n`app` (name, resolved as phone_apps does; ambiguous or unknown names\nare refused with candidates, nothing sent).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "app": {
      +        "type": "string"
      +      },
      +      "bundle": {
      +        "type": "string"
      +      },
      +      "fresh": {
      +        "description": "Quit first so it opens on its first screen (where recorded flows\nstart).",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "launch_app"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Open a link with the app iOS assigns it. http/https always; other\nschemes only if IPHONE_USE_ALLOW_URL_SCHEMES allows them. Leaves the\ncurrent app: guard the next screen with `wait_for`.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "open_url"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Navigate back inside the current app.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "back"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Press a system-alert button natively — the only path that acts on one\n(taps on alert buttons ACK without effect). Exact `button` text, or\n`action: accept|dismiss`. Fails when no alert is showing.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "button": {
      +        "type": "string"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no alert is up (prompts that appear\nonly sometimes: \"Allow Paste\").",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "alert"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Select a value in a native picker wheel.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "column": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "picker"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Invoke an affordance (toggle, increment, decrement, adjust, …; see\nphone_capabilities perform_actions) on `element`+`snapshot` from\nphone_elements; not for saved flows. `value` only with adjust;\n`duration_ms` only with menu/force_press. Verify with wait_for.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "element": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "perform"
      +      },
      +      "snapshot": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "element",
      +      "snapshot",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Poll until `expect` holds (timeout_ms default 15000, at most 30000, or\n60000 with ocr_present/ocr_absent; poll_ms default 250, 50..1000);\ntimeout_ms:0 is one 500 ms observation without polling. All waits and\npauses in one batch add up to at most 60000 ms; split longer waits.",
      +    "properties": {
      +      "expect": {
      +        "$ref": "#/$defs/PhoneUiExpectation"
      +      },
      +      "kind": {
      +        "const": "wait_for"
      +      },
      +      "poll_ms": {
      +        "default": 250,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "timeout_ms": {
      +        "default": 15000,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "expect"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Fixed pause, 1..3000 ms; prefer `wait_for`.",
      +    "properties": {
      +      "kind": {
      +        "const": "pause"
      +      },
      +      "ms": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ms"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / description
      Removed value: -"Parameters for [`phone_run_steps`]."
  2. Changed32 schema fields changedv0.29.0
    • removedInput schema / $defs / PhoneDragPoint / additionalProperties
      Removed value: -false
    • removedInput schema / $defs / PhoneElementLocator / additionalProperties
      Removed value: -false
    • changedInput schema / $defs / PhoneElementLocator / properties / enabled / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • changedInput schema / $defs / PhoneElementLocator / properties / focused / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • changedInput schema / $defs / PhoneElementLocator / properties / identifier / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / PhoneElementLocator / properties / kind / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / PhoneElementLocator / properties / label / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / PhoneElementLocator / properties / label_contains / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / PhoneElementLocator / properties / value / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / PhoneElementLocator / properties / visible / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • removedInput schema / $defs / PhoneHoldPoint / additionalProperties
      Removed value: -false
    • changedInput schema / $defs / PhoneStep / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Long-press normalized screen coordinates.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 600,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "longpress",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold 2–5 distinct normalized points simultaneously; array length is finger count.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 1000,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "multi_longpress",
      -        "type": "string"
      -      },
      -      "points": {
      -        "items": {
      -          "$ref": "#/$defs/PhoneHoldPoint"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "points"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Swipe once from one normalized screen point to another.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "swipe",
      -        "type": "string"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "hold_ms": {
      -        "default": 500,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "drag",
      -        "type": "string"
      -      },
      -      "points": {
      -        "default": null,
      -        "items": {
      -          "$ref": "#/$defs/PhoneDragPoint"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "x1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "x2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap one exact, unique accessibility label.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap_label",
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "tap_locator",
      -        "type": "string"
      -      },
      -      "locator": {
      -        "$ref": "#/$defs/PhoneElementLocator"
      -      },
      -      "via": {
      -        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "locator"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "budget_ms": {
      -        "description": "Optional per-call typing budget (6000..15000 ms).",
      -        "maximum": 15000,
      -        "minimum": 6000,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "clear": {
      -        "default": false,
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "type",
      -        "type": "string"
      -      },
      -      "text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Continue only the unsent suffix held under a single-use original-field token.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "continue_token": {
      -        "maxLength": 64,
      -        "minLength": 64,
      -        "pattern": "^[0-9a-f]{64}$",
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "type_continue",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "continue_token"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Send one supported device-native key.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "key",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Trigger Home or Spotlight.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "shortcut",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "kind": {
      -        "const": "scroll",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; a\nloose name that starts a word of exactly one installed app's name also\nlaunches it, and the step's `resolved` says which; an ambiguous or\nunknown name is refused with candidates, nothing sent).",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "app": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "bundle": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "fresh": {
      -        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "launch_app",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "open_url",
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Navigate back inside the current application.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "back",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      -    "properties": {
      -      "action": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "button": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "alert",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Select a value in a native picker wheel.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "column": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "picker",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": null,
      -        "minimum": 0,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "element": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "perform",
      -        "type": "string"
      -      },
      -      "snapshot": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "element",
      -      "snapshot",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Poll until the expectation holds. For tree waits, timeout_ms:0 makes\none observation attempt bounded to 500ms, without polling or read retry.\nUse observe:false to omit the separate final batch observation.",
      -    "properties": {
      -      "expect": {
      -        "$ref": "#/$defs/PhoneUiExpectation"
      -      },
      -      "kind": {
      -        "const": "wait_for",
      -        "type": "string"
      -      },
      -      "poll_ms": {
      -        "default": 250,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "timeout_ms": {
      -        "default": 15000,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "expect"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      -    "properties": {
      -      "kind": {
      -        "const": "pause",
      -        "type": "string"
      -      },
      -      "ms": {
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Tap normalized coordinates; prefer `tap_locator` when the target has\na label or identifier.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "tap"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Long-press normalized coordinates (duration_ms default 600).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 600,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "longpress"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Hold 2–5 normalized points at once (duration_ms default 1000).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 1000,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "multi_longpress"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneHoldPoint"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "points"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Two-finger pinch around normalized (x,y) (default the screen centre):\n`scale` below 1 zooms out (fingers close), above 1 zooms in (fingers\nopen); 0.2–5, not within 0.05 of 1. `angle` is the finger line in\ndegrees (0 = horizontal); `spread` the wider finger gap as a fraction\nof the shorter screen side (0.1–0.9, default 0.6); duration_ms\n100–2000, default 500. For a stronger zoom, repeat the step.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "angle": {
      +        "default": 0,
      +        "type": "number"
      +      },
      +      "duration_ms": {
      +        "default": 500,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "pinch"
      +      },
      +      "scale": {
      +        "type": "number"
      +      },
      +      "spread": {
      +        "default": 0.6,
      +        "type": "number"
      +      },
      +      "x": {
      +        "default": 0.5,
      +        "type": "number"
      +      },
      +      "y": {
      +        "default": 0.5,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "scale"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Swipe from (x1,y1) to (x2,y2), normalized; duration_ms default 300.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "swipe"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x1",
      +      "y1",
      +      "x2",
      +      "y2"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Hold hold_ms (500), then drag: x1/y1→x2/y2, or 2–16 `points` with a\ndwell_ms each; duration_ms (300) is travel per segment; total ≤ 10 s.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "hold_ms": {
      +        "default": 500,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "drag"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneDragPoint"
      +        },
      +        "type": "array"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Tap one exact, unique accessibility label.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "tap_label"
      +      },
      +      "label": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Tap the single element matching every locator field; zero or several\nmatches send nothing.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when nothing matches (screens that appear\nonly sometimes: \"Not now\", \"Skip\").",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "tap_locator"
      +      },
      +      "locator": {
      +        "$ref": "#/$defs/PhoneElementLocator"
      +      },
      +      "via": {
      +        "description": "`point` taps the live frame's centre instead of XCUIElement's\nclick (custom controls that ACK and do nothing); default `element`.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "locator"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Type Unicode text into the focused field; clear=true empties it first.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "budget_ms": {
      +        "description": "Typing budget, 6000..15000 ms.",
      +        "maximum": 15000,
      +        "minimum": 6000,
      +        "type": "integer"
      +      },
      +      "clear": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "type"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Continue the unsent suffix of a type step with its single-use token.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "continue_token": {
      +        "maxLength": 64,
      +        "minLength": 64,
      +        "pattern": "^[0-9a-f]{64}$",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "type_continue"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "continue_token"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Send one device key (return, escape, space, tab, delete, up, down,\nleft, right).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "key"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "`home` or `spotlight`.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "shortcut"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Scroll as `phone_scroll`: normalized anchor x,y; deltas dx,dy in\npoints, positive dy reveals content below.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "const": "scroll"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Launch or foreground an app: exactly one of `bundle` (bundle id) or\n`app` (name, resolved as phone_apps does; ambiguous or unknown names\nare refused with candidates, nothing sent).",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "app": {
      +        "type": "string"
      +      },
      +      "bundle": {
      +        "type": "string"
      +      },
      +      "fresh": {
      +        "description": "Quit first so it opens on its first screen (where recorded flows\nstart).",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "launch_app"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Open a link with the app iOS assigns it. http/https always; other\nschemes only if IPHONE_USE_ALLOW_URL_SCHEMES allows them. Leaves the\ncurrent app: guard the next screen with `wait_for`.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "open_url"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Navigate back inside the current app.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "kind": {
      +        "const": "back"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Press a system-alert button natively — the only path that acts on one\n(taps on alert buttons ACK without effect). Exact `button` text, or\n`action: accept|dismiss`. Fails when no alert is showing.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "button": {
      +        "type": "string"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no alert is up (prompts that appear\nonly sometimes: \"Allow Paste\").",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "alert"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Select a value in a native picker wheel.",
      +    "properties": {
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "column": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "picker"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Invoke an affordance (toggle, increment, decrement, adjust, …; see\nphone_capabilities perform_actions) on `element`+`snapshot` from\nphone_elements; not for saved flows. `value` only with adjust;\n`duration_ms` only with menu/force_press. Verify with wait_for.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "$ref": "#/$defs/after_ms"
      +      },
      +      "duration_ms": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "element": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "perform"
      +      },
      +      "snapshot": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "element",
      +      "snapshot",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Poll until `expect` holds (timeout_ms default 15000, poll_ms 250);\ntimeout_ms:0 is one 500 ms observation without polling.",
      +    "properties": {
      +      "expect": {
      +        "$ref": "#/$defs/PhoneUiExpectation"
      +      },
      +      "kind": {
      +        "const": "wait_for"
      +      },
      +      "poll_ms": {
      +        "default": 250,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "timeout_ms": {
      +        "default": 15000,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "expect"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Fixed pause; prefer `wait_for`.",
      +    "properties": {
      +      "kind": {
      +        "const": "pause"
      +      },
      +      "ms": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ms"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / $defs / PhoneUiExpectation / additionalProperties
      Removed value: -false
    • changedInput schema / $defs / PhoneUiExpectation / properties / absent_after_present / description
      Previous value: -"Wait until each absent target has first appeared and then disappeared;\nuse for loaders that may start after the preceding action returns."New value: +"Each absent target must first appear, then disappear (loaders that\nstart after the preceding action returns)."
    • changedInput schema / $defs / PhoneUiExpectation / properties / application / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / PhoneUiExpectation / properties / ocr_present / description
      Previous value: -"Text that must be visible, read by OCR from screenshots — for canvas\nscreens (games, Flutter/Unity) whose element tree has no labels, e.g.\nwaiting out a game's loading screen. Case and spaces are ignored.\nCannot be combined with application/present/absent in one wait_for;\nsuch a wait may take timeout_ms up to 60000."New value: +"Text that must be visible, read by OCR — for canvas screens (games,\nFlutter/Unity) with no labels. Case and spaces ignored; not combinable\nwith application/present/absent; timeout_ms may reach 60000."
    • removedInput schema / $defs / WaitSelector / additionalProperties
      Removed value: -false
    • changedInput schema / $defs / WaitSelector / properties / enabled / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • changedInput schema / $defs / WaitSelector / properties / focused / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • changedInput schema / $defs / WaitSelector / properties / identifier / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / WaitSelector / properties / kind / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / WaitSelector / properties / label / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / WaitSelector / properties / label_contains / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / WaitSelector / properties / value / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / $defs / WaitSelector / properties / visible / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • addedInput schema / $defs / after_ms
      Added value: +{
      +  "default": 0,
      +  "description": "Pause after this step, ms.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
    • removedInput schema / properties / observe / default
      Removed value: -null
    • changedInput schema / properties / observe / description
      Previous value: -"Return the screen the batch ended on (`snapshot`, `elements`, `alert`)\nin the same reply, so the next decision needs no phone_elements call.\nDefault true; set false only when you will not look at the result."New value: +"Default true: reply with the screen the batch ended on (`snapshot`,\n`elements`, `alert`); false when you will not look at it."
    • changedInput schema / properties / observe / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
    • changedInput schema / properties / steps / description
      Previous value: -"Ordered steps. The daemon validates the whole list before sending the\nfirst action and stops immediately when any action or wait condition\nfails."New value: +"Ordered steps (max 24); validated as a whole first, stops at the\nfirst failure."
  3. Changed1 schema field changedv0.28.1
    • addedInput schema / $defs / PhoneUiExpectation / properties / absent_after_present
      Added value: +{
      +  "description": "Wait until each absent target has first appeared and then disappeared;\nuse for loaders that may start after the preceding action returns.",
      +  "type": "boolean"
      +}
  4. Changed7 schema fields changedv0.27.34
    • addedInput schema / $defs / PhoneDragPoint / properties / dwell_ms / minimum
      Added value: +0
    • addedInput schema / $defs / PhoneElementLocator / properties / label_contains
      Added value: +{
      +  "description": "Case-sensitive literal substring of the normalized label.",
      +  "maxLength": 1000,
      +  "minLength": 1,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / $defs / PhoneStep / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Long-press normalized screen coordinates.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 600,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "longpress",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold 2–5 distinct normalized points simultaneously; array length is finger count.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 1000,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "multi_longpress",
      -        "type": "string"
      -      },
      -      "points": {
      -        "items": {
      -          "$ref": "#/$defs/PhoneHoldPoint"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "points"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Swipe once from one normalized screen point to another.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "swipe",
      -        "type": "string"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "hold_ms": {
      -        "default": 500,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "drag",
      -        "type": "string"
      -      },
      -      "points": {
      -        "default": null,
      -        "items": {
      -          "$ref": "#/$defs/PhoneDragPoint"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "x1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "x2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap one exact, unique accessibility label.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap_label",
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "tap_locator",
      -        "type": "string"
      -      },
      -      "locator": {
      -        "$ref": "#/$defs/PhoneElementLocator"
      -      },
      -      "via": {
      -        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "locator"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "clear": {
      -        "default": false,
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "type",
      -        "type": "string"
      -      },
      -      "text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Send one supported device-native key.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "key",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Trigger Home or Spotlight.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "shortcut",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "kind": {
      -        "const": "scroll",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; a\nloose name that starts a word of exactly one installed app's name also\nlaunches it, and the step's `resolved` says which; an ambiguous or\nunknown name is refused with candidates, nothing sent).",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "app": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "bundle": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "fresh": {
      -        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "launch_app",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "open_url",
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Navigate back inside the current application.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "back",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      -    "properties": {
      -      "action": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "button": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "alert",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Select a value in a native picker wheel.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "column": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "picker",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": null,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "element": {
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "perform",
      -        "type": "string"
      -      },
      -      "snapshot": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "element",
      -      "snapshot",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Poll the current element tree until the semantic expectation holds.",
      -    "properties": {
      -      "expect": {
      -        "$ref": "#/$defs/PhoneUiExpectation"
      -      },
      -      "kind": {
      -        "const": "wait_for",
      -        "type": "string"
      -      },
      -      "poll_ms": {
      -        "default": 250,
      -        "type": "integer"
      -      },
      -      "timeout_ms": {
      -        "default": 15000,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "expect"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      -    "properties": {
      -      "kind": {
      -        "const": "pause",
      -        "type": "string"
      -      },
      -      "ms": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Long-press normalized screen coordinates.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 600,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "longpress",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold 2–5 distinct normalized points simultaneously; array length is finger count.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 1000,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "multi_longpress",
      +        "type": "string"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneHoldPoint"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "points"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Swipe once from one normalized screen point to another.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "swipe",
      +        "type": "string"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x1",
      +      "y1",
      +      "x2",
      +      "y2"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "hold_ms": {
      +        "default": 500,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "drag",
      +        "type": "string"
      +      },
      +      "points": {
      +        "default": null,
      +        "items": {
      +          "$ref": "#/$defs/PhoneDragPoint"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "x1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "x2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap one exact, unique accessibility label.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap_label",
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "tap_locator",
      +        "type": "string"
      +      },
      +      "locator": {
      +        "$ref": "#/$defs/PhoneElementLocator"
      +      },
      +      "via": {
      +        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "locator"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "budget_ms": {
      +        "description": "Optional per-call typing budget (6000..15000 ms).",
      +        "maximum": 15000,
      +        "minimum": 6000,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "clear": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "type",
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Continue only the unsent suffix held under a single-use original-field token.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "continue_token": {
      +        "maxLength": 64,
      +        "minLength": 64,
      +        "pattern": "^[0-9a-f]{64}$",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "type_continue",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "continue_token"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Send one supported device-native key.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "key",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Trigger Home or Spotlight.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "shortcut",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "const": "scroll",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; a\nloose name that starts a word of exactly one installed app's name also\nlaunches it, and the step's `resolved` says which; an ambiguous or\nunknown name is refused with candidates, nothing sent).",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "app": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "bundle": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fresh": {
      +        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "launch_app",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "open_url",
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Navigate back inside the current application.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "back",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      +    "properties": {
      +      "action": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "button": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "alert",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Select a value in a native picker wheel.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "column": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "picker",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": null,
      +        "minimum": 0,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "element": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "perform",
      +        "type": "string"
      +      },
      +      "snapshot": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "element",
      +      "snapshot",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Poll until the expectation holds. For tree waits, timeout_ms:0 makes\none observation attempt bounded to 500ms, without polling or read retry.\nUse observe:false to omit the separate final batch observation.",
      +    "properties": {
      +      "expect": {
      +        "$ref": "#/$defs/PhoneUiExpectation"
      +      },
      +      "kind": {
      +        "const": "wait_for",
      +        "type": "string"
      +      },
      +      "poll_ms": {
      +        "default": 250,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "timeout_ms": {
      +        "default": 15000,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "expect"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      +    "properties": {
      +      "kind": {
      +        "const": "pause",
      +        "type": "string"
      +      },
      +      "ms": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ms"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / $defs / PhoneUiExpectation / properties / absent / items / $ref
      Previous value: -"#/$defs/PhoneElementLocator"New value: +"#/$defs/WaitSelector"
    • changedInput schema / $defs / PhoneUiExpectation / properties / present / items / $ref
      Previous value: -"#/$defs/PhoneElementLocator"New value: +"#/$defs/WaitSelector"
    • addedInput schema / $defs / WaitIndex
      Added value: +{
      +  "description": "Zero-based ordinal among matches; index 2 requires at least three matches.",
      +  "maximum": 199,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / $defs / WaitSelector
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Flat legacy locator fields plus a wait-only bounded ordinal. Custom parsing\npreserves strict unknown/duplicate-field rejection with flattened schema.",
      +  "properties": {
      +    "enabled": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "focused": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "identifier": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "index": {
      +      "$ref": "#/$defs/WaitIndex"
      +    },
      +    "kind": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "label": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "label_contains": {
      +      "description": "Case-sensitive literal substring of the normalized label.",
      +      "maxLength": 1000,
      +      "minLength": 1,
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "value": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "visible": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  5. Changed4 schema fields changedv0.27.3
    • changedInput schema / $defs / PhoneStep / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Long-press normalized screen coordinates.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 600,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "longpress",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold 2–5 distinct normalized points simultaneously; array length is finger count.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 1000,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "multi_longpress",
      -        "type": "string"
      -      },
      -      "points": {
      -        "items": {
      -          "$ref": "#/$defs/PhoneHoldPoint"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "points"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Swipe once from one normalized screen point to another.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "swipe",
      -        "type": "string"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "hold_ms": {
      -        "default": 500,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "drag",
      -        "type": "string"
      -      },
      -      "points": {
      -        "default": null,
      -        "items": {
      -          "$ref": "#/$defs/PhoneDragPoint"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "x1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "x2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap one exact, unique accessibility label.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap_label",
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "tap_locator",
      -        "type": "string"
      -      },
      -      "locator": {
      -        "$ref": "#/$defs/PhoneElementLocator"
      -      },
      -      "via": {
      -        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "locator"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "clear": {
      -        "default": false,
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "type",
      -        "type": "string"
      -      },
      -      "text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Send one supported device-native key.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "key",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Trigger Home or Spotlight.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "shortcut",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "kind": {
      -        "const": "scroll",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its exact name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; an\nambiguous or unknown name is refused with candidates, nothing sent).",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "app": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "bundle": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "fresh": {
      -        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "launch_app",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "open_url",
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Navigate back inside the current application.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "back",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      -    "properties": {
      -      "action": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "button": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "alert",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Select a value in a native picker wheel.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "column": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "picker",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": null,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "element": {
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "perform",
      -        "type": "string"
      -      },
      -      "snapshot": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "element",
      -      "snapshot",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Poll the current element tree until the semantic expectation holds.",
      -    "properties": {
      -      "expect": {
      -        "$ref": "#/$defs/PhoneUiExpectation"
      -      },
      -      "kind": {
      -        "const": "wait_for",
      -        "type": "string"
      -      },
      -      "poll_ms": {
      -        "default": 250,
      -        "type": "integer"
      -      },
      -      "timeout_ms": {
      -        "default": 15000,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "expect"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      -    "properties": {
      -      "kind": {
      -        "const": "pause",
      -        "type": "string"
      -      },
      -      "ms": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Long-press normalized screen coordinates.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 600,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "longpress",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold 2–5 distinct normalized points simultaneously; array length is finger count.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 1000,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "multi_longpress",
      +        "type": "string"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneHoldPoint"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "points"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Swipe once from one normalized screen point to another.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "swipe",
      +        "type": "string"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x1",
      +      "y1",
      +      "x2",
      +      "y2"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "type": "integer"
      +      },
      +      "hold_ms": {
      +        "default": 500,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "drag",
      +        "type": "string"
      +      },
      +      "points": {
      +        "default": null,
      +        "items": {
      +          "$ref": "#/$defs/PhoneDragPoint"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "x1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "x2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap one exact, unique accessibility label.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap_label",
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "tap_locator",
      +        "type": "string"
      +      },
      +      "locator": {
      +        "$ref": "#/$defs/PhoneElementLocator"
      +      },
      +      "via": {
      +        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "locator"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "clear": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "type",
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Send one supported device-native key.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "key",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Trigger Home or Spotlight.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "shortcut",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "const": "scroll",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; a\nloose name that starts a word of exactly one installed app's name also\nlaunches it, and the step's `resolved` says which; an ambiguous or\nunknown name is refused with candidates, nothing sent).",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "app": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "bundle": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fresh": {
      +        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "launch_app",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "open_url",
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Navigate back inside the current application.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "back",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      +    "properties": {
      +      "action": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "button": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "alert",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Select a value in a native picker wheel.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "column": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "picker",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": null,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "element": {
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "perform",
      +        "type": "string"
      +      },
      +      "snapshot": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "element",
      +      "snapshot",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Poll the current element tree until the semantic expectation holds.",
      +    "properties": {
      +      "expect": {
      +        "$ref": "#/$defs/PhoneUiExpectation"
      +      },
      +      "kind": {
      +        "const": "wait_for",
      +        "type": "string"
      +      },
      +      "poll_ms": {
      +        "default": 250,
      +        "type": "integer"
      +      },
      +      "timeout_ms": {
      +        "default": 15000,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "expect"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      +    "properties": {
      +      "kind": {
      +        "const": "pause",
      +        "type": "string"
      +      },
      +      "ms": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ms"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / $defs / PhoneUiExpectation / properties / ocr_absent
      Added value: +{
      +  "description": "Text that must not be visible (a loading caption), read by OCR.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / $defs / PhoneUiExpectation / properties / ocr_present
      Added value: +{
      +  "description": "Text that must be visible, read by OCR from screenshots — for canvas\nscreens (games, Flutter/Unity) whose element tree has no labels, e.g.\nwaiting out a game's loading screen. Case and spaces are ignored.\nCannot be combined with application/present/absent in one wait_for;\nsuch a wait may take timeout_ms up to 60000.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  6. Changed2 schema fields changedv0.23.0
    • addedInput schema / $defs / PhoneHoldPoint
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "One independently placed finger in a simultaneous hold.",
      +  "properties": {
      +    "x": {
      +      "type": "number"
      +    },
      +    "y": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "x",
      +    "y"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / $defs / PhoneStep / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Long-press normalized screen coordinates.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 600,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "longpress",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Swipe once from one normalized screen point to another.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "swipe",
      -        "type": "string"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "hold_ms": {
      -        "default": 500,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "drag",
      -        "type": "string"
      -      },
      -      "points": {
      -        "default": null,
      -        "items": {
      -          "$ref": "#/$defs/PhoneDragPoint"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "x1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "x2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y1": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "y2": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap one exact, unique accessibility label.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap_label",
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "tap_locator",
      -        "type": "string"
      -      },
      -      "locator": {
      -        "$ref": "#/$defs/PhoneElementLocator"
      -      },
      -      "via": {
      -        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "locator"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "clear": {
      -        "default": false,
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "type",
      -        "type": "string"
      -      },
      -      "text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Send one supported device-native key.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "key",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Trigger Home or Spotlight.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "shortcut",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "kind": {
      -        "const": "scroll",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its exact name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; an\nambiguous or unknown name is refused with candidates, nothing sent).",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "app": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "bundle": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "fresh": {
      -        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "launch_app",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "open_url",
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Navigate back inside the current application.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "back",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      -    "properties": {
      -      "action": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "button": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "alert",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Select a value in a native picker wheel.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "column": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "picker",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": null,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "element": {
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "perform",
      -        "type": "string"
      -      },
      -      "snapshot": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "element",
      -      "snapshot",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Poll the current element tree until the semantic expectation holds.",
      -    "properties": {
      -      "expect": {
      -        "$ref": "#/$defs/PhoneUiExpectation"
      -      },
      -      "kind": {
      -        "const": "wait_for",
      -        "type": "string"
      -      },
      -      "poll_ms": {
      -        "default": 250,
      -        "type": "integer"
      -      },
      -      "timeout_ms": {
      -        "default": 15000,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "expect"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      -    "properties": {
      -      "kind": {
      -        "const": "pause",
      -        "type": "string"
      -      },
      -      "ms": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Long-press normalized screen coordinates.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 600,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "longpress",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold 2–5 distinct normalized points simultaneously; array length is finger count.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 1000,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "multi_longpress",
      +        "type": "string"
      +      },
      +      "points": {
      +        "items": {
      +          "$ref": "#/$defs/PhoneHoldPoint"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "points"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Swipe once from one normalized screen point to another.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "swipe",
      +        "type": "string"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x1",
      +      "y1",
      +      "x2",
      +      "y2"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "type": "integer"
      +      },
      +      "hold_ms": {
      +        "default": 500,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "drag",
      +        "type": "string"
      +      },
      +      "points": {
      +        "default": null,
      +        "items": {
      +          "$ref": "#/$defs/PhoneDragPoint"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "x1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "x2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap one exact, unique accessibility label.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap_label",
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "tap_locator",
      +        "type": "string"
      +      },
      +      "locator": {
      +        "$ref": "#/$defs/PhoneElementLocator"
      +      },
      +      "via": {
      +        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "locator"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "clear": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "type",
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Send one supported device-native key.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "key",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Trigger Home or Spotlight.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "shortcut",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "const": "scroll",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its exact name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; an\nambiguous or unknown name is refused with candidates, nothing sent).",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "app": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "bundle": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fresh": {
      +        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "launch_app",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "open_url",
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Navigate back inside the current application.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "back",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      +    "properties": {
      +      "action": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "button": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "alert",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Select a value in a native picker wheel.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "column": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "picker",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": null,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "element": {
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "perform",
      +        "type": "string"
      +      },
      +      "snapshot": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "element",
      +      "snapshot",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Poll the current element tree until the semantic expectation holds.",
      +    "properties": {
      +      "expect": {
      +        "$ref": "#/$defs/PhoneUiExpectation"
      +      },
      +      "kind": {
      +        "const": "wait_for",
      +        "type": "string"
      +      },
      +      "poll_ms": {
      +        "default": 250,
      +        "type": "integer"
      +      },
      +      "timeout_ms": {
      +        "default": 15000,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "expect"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      +    "properties": {
      +      "kind": {
      +        "const": "pause",
      +        "type": "string"
      +      },
      +      "ms": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ms"
      +    ],
      +    "type": "object"
      +  }
      +]
  7. Changed2 schema fields changedv0.22.3
    • addedInput schema / $defs / PhoneDragPoint
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "One stop in a continuous drag. Dwell keeps the same finger down.",
      +  "properties": {
      +    "dwell_ms": {
      +      "default": 0,
      +      "type": "integer"
      +    },
      +    "x": {
      +      "type": "number"
      +    },
      +    "y": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "x",
      +    "y"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / $defs / PhoneStep / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Long-press normalized screen coordinates.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 600,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "longpress",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Swipe once from one normalized screen point to another.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "swipe",
      -        "type": "string"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Hold, then drag once between two normalized screen points.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": 300,
      -        "type": "integer"
      -      },
      -      "hold_ms": {
      -        "default": 500,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "drag",
      -        "type": "string"
      -      },
      -      "x1": {
      -        "type": "number"
      -      },
      -      "x2": {
      -        "type": "number"
      -      },
      -      "y1": {
      -        "type": "number"
      -      },
      -      "y2": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x1",
      -      "y1",
      -      "x2",
      -      "y2"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap one exact, unique accessibility label.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "tap_label",
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "tap_locator",
      -        "type": "string"
      -      },
      -      "locator": {
      -        "$ref": "#/$defs/PhoneElementLocator"
      -      },
      -      "via": {
      -        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "locator"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "clear": {
      -        "default": false,
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "type",
      -        "type": "string"
      -      },
      -      "text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Send one supported device-native key.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "key",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Trigger Home or Spotlight.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "shortcut",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "kind": {
      -        "const": "scroll",
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "x",
      -      "y",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its exact name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; an\nambiguous or unknown name is refused with candidates, nothing sent).",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "app": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "bundle": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "fresh": {
      -        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "launch_app",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "open_url",
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Navigate back inside the current application.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "back",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      -    "properties": {
      -      "action": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "button": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "if_present": {
      -        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "const": "alert",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Select a value in a native picker wheel.",
      -    "properties": {
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "column": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "picker",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "after_ms": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "duration_ms": {
      -        "default": null,
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "element": {
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "perform",
      -        "type": "string"
      -      },
      -      "snapshot": {
      -        "type": "string"
      -      },
      -      "value": {
      -        "default": null,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "element",
      -      "snapshot",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Poll the current element tree until the semantic expectation holds.",
      -    "properties": {
      -      "expect": {
      -        "$ref": "#/$defs/PhoneUiExpectation"
      -      },
      -      "kind": {
      -        "const": "wait_for",
      -        "type": "string"
      -      },
      -      "poll_ms": {
      -        "default": 250,
      -        "type": "integer"
      -      },
      -      "timeout_ms": {
      -        "default": 15000,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "expect"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      -    "properties": {
      -      "kind": {
      -        "const": "pause",
      -        "type": "string"
      -      },
      -      "ms": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap normalized screen coordinates. Prefer `tap_locator` (durable in a\nsaved flow) whenever the target has a label or identifier.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Long-press normalized screen coordinates.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 600,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "longpress",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Swipe once from one normalized screen point to another.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "swipe",
      +        "type": "string"
      +      },
      +      "x1": {
      +        "type": "number"
      +      },
      +      "x2": {
      +        "type": "number"
      +      },
      +      "y1": {
      +        "type": "number"
      +      },
      +      "y2": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x1",
      +      "y1",
      +      "x2",
      +      "y2"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Hold, then drag continuously. Use either x1/y1/x2/y2 or 2–16\nnormalized points with optional dwell_ms at each stop. For points,\nduration_ms is travel time per segment; total hold/travel/dwell <= 10s.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": 300,
      +        "type": "integer"
      +      },
      +      "hold_ms": {
      +        "default": 500,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "drag",
      +        "type": "string"
      +      },
      +      "points": {
      +        "default": null,
      +        "items": {
      +          "$ref": "#/$defs/PhoneDragPoint"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "x1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "x2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y1": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "y2": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap one exact, unique accessibility label.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "tap_label",
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Tap the one current element matching every supplied semantic locator\nfield. Zero or multiple matches send no tap.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no element matches — for screens that\nappear only sometimes (\"Not now\", \"Skip\"). Nothing is sent then.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "tap_locator",
      +        "type": "string"
      +      },
      +      "locator": {
      +        "$ref": "#/$defs/PhoneElementLocator"
      +      },
      +      "via": {
      +        "description": "`point`: tap the centre of the element's live frame instead of\nXCUIElement's click — for custom controls that ACK a click and do\nnothing. Default `element`.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "locator"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Type Unicode text into the focused field. `clear=true` clears that field\nimmediately before inserting the text as one compound action.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "clear": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "type",
      +        "type": "string"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Send one supported device-native key.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "key",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Trigger Home or Spotlight.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "shortcut",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Scroll with the same normalized anchor and deltas as `phone_scroll`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "kind": {
      +        "const": "scroll",
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "x",
      +      "y",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Launch or foreground an installed app: give exactly one of `bundle`\n(its exact bundle identifier) or `app` (its exact name — 微信, WeChat,\n招商银行, Settings — which the daemon resolves through phone_apps; an\nambiguous or unknown name is refused with candidates, nothing sent).",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "app": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "bundle": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fresh": {
      +        "description": "Quit the app first so it opens on its first screen, not the page\nit was left on (flows recorded on the phone start there).",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "launch_app",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Open a link (`https://…`, or a deep link such as `weixin://`) with\nthe app iOS assigns to it. http/https always work; other schemes\n(tel, sms, mailto, app deep links) are refused unless the operator\nallowed them in IPHONE_USE_ALLOW_URL_SCHEMES. It leaves the current\napp, so guard the next screen with `wait_for`.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "open_url",
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Navigate back inside the current application.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "back",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Press a button on a system alert (UIAlertController) through the device runner's\nnative alert route — the only path that actually acts on one; taps on\nalert buttons are acknowledged without effect. Give the exact button\ntext, or `action: accept|dismiss` for the default/cancel button. Fails\nclosed when no alert is showing.",
      +    "properties": {
      +      "action": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "button": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "if_present": {
      +        "description": "Pass instead of failing when no alert is up — for prompts that\nappear only sometimes (\"Allow Paste\"). Flows using it need a\nclient that knows it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "const": "alert",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Select a value in a native picker wheel.",
      +    "properties": {
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "column": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "picker",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Invoke a named affordance on a snapshot-bound element: toggle a\nswitch, increment/decrement or adjust a slider or stepper, and the\nother names in phone_capabilities (`perform_actions`). `element` and\n`snapshot` come from phone_elements. Snapshot-bound, so not for saved\nflows. `value` only with `adjust`; `duration_ms` only with\n`menu`/`force_press`. Verify the new `value` with wait_for.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "after_ms": {
      +        "default": 0,
      +        "type": "integer"
      +      },
      +      "duration_ms": {
      +        "default": null,
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "element": {
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "perform",
      +        "type": "string"
      +      },
      +      "snapshot": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "default": null,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "element",
      +      "snapshot",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Poll the current element tree until the semantic expectation holds.",
      +    "properties": {
      +      "expect": {
      +        "$ref": "#/$defs/PhoneUiExpectation"
      +      },
      +      "kind": {
      +        "const": "wait_for",
      +        "type": "string"
      +      },
      +      "poll_ms": {
      +        "default": 250,
      +        "type": "integer"
      +      },
      +      "timeout_ms": {
      +        "default": 15000,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "expect"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A short animation pause. Prefer `wait_for` for correctness.",
      +    "properties": {
      +      "kind": {
      +        "const": "pause",
      +        "type": "string"
      +      },
      +      "ms": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "ms"
      +    ],
      +    "type": "object"
      +  }
      +]
  8. First observedv0.21.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive/openWorld/non-idempotent, and the description adds real context beyond them: whole-batch validation up front, a single lock held for the batch, fail-fast at the first failure, the returned ending screen when observe is on, and an explicit 'retry_safe=false: DO NOT replay' warning. These are non-obvious traits an agent cannot get from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the default-way framing and the one-turn rationale come first, followed by failure/lock behavior and then the safety rules. A few clauses are compressed to the point of being cryptic ('The steps are exactly a saved flow's `steps`: on `flow_suggestion` ask the user about phone_flow_draft'), but every sentence carries operational value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, destructive, non-idempotent batch tool with no output schema, the description covers the important unknowns: atomic validation, lock behavior, fail-fast, what comes back, and retry prohibition. Remaining gaps (step-count limit, error payload shape, the instance parameter) are handled by the schema or are minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes slightly beyond by explaining that `steps` is exactly a saved flow's step format (linking it to the flow tools) and clarifying when observe should be turned off ('when you will not look at it'). It says nothing about `instance` or the 24-step cap, but those are fully documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('run several steps in ONE call') and immediately frames it as 'THE DEFAULT WAY TO ACT', explicitly contrasting it with 'single-action tools are for exploring'. An agent can tell this apart from the many single-action siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: this is the default, single-action tools are for exploring, guard screen changes with wait_for, and never batch an unverified irreversible step. It also names a sibling conditionally ('on flow_suggestion ask the user about phone_flow_draft'), so both when-to-use and when-to-handoff are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.