glass_do
Batch known UI input sequences into one call—combine click, type, drag, scroll, and settle steps to cut round-trips, then optionally observe. Fail-fast reports which action failed and how many ran.
Instructions
Run an ordered sequence of input actions in ONE call (collapsing per-action round-trips), then optionally observe. actions is a list of {"action":"click|move|drag|scroll|type|key|settle", …same fields as the matching tool — except type's return observe, rejected here (use a settle action or then)}; settle waits for the screen to stop changing between steps. Optional then runs after all actions succeed: {settle?, diff?, screenshot?} (text-only unless screenshot/diff image). Fails fast: if an action errors it reports which index failed and how many ran. Use for KNOWN sequences (login, form-fill, menu→item); if you must see a result to choose the next action, don't batch that part.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then | No | Optional observe run once after the last action, in the order settle → diff → screenshot. | |
| actions | Yes | Actions to run in order; must be non-empty. Fail-fast — the first failing action aborts the rest and reports its index, so a partial sequence may already have landed. |