page_batch
Run a sequence of browser actions in one call, returning a single combined network/console/URL delta instead of one result per step. Includes an optional final page look with screenshot and legend.
Instructions
Run a SEQUENCE of actions in one call. Each step is an object with an action field, e.g. { "action": "tap_at", "x": 195, "y": 615 } or { "action": "wait_for", "networkIdleMs": 800 } — NOT { "tap_at": ... }. Actions: click / type / fill / select / key / hover / scroll / click_at / tap_at (touch, for Cocos/canvas games) / goto / wait / wait_for. Steps settle briefly between each, and it reports ONE combined network/console/url delta at the end — far faster than one tool call per step. Target steps by selector, by text ("the button that says Login"), or by ref (refs stay valid inside a batch — text targeting does not renumber them — but any step that changes the DOM invalidates them, so prefer selector/text after such a step). Stops at the first failing step unless stopOnError:false. Set look:true to get a page_look (badged 1:1 screenshot + legend) of the final state in the same reply, so you can pick the next target immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| look | No | append a page_look of the final state (badged screenshot + legend) | |
| steps | Yes | ||
| waitMs | No | final settle cap before reporting the delta (default 700ms) | |
| lookLimit | No | max badges for the final look (default 80) | |
| sessionId | No | ||
| stopOnError | No | stop at the first failing step (default true) | |
| stepSettleMs | No | quiet-wait cap between steps (default 300ms) |