map_compact
Renders a compact one-line-per-element snapshot of the current page, preserving element state and optionally including bounding-box coordinates or filtering to actionable roles for efficient browser automation.
Instructions
One-line-per-element rendering of the snapshot (token-efficient): @eN role "name" [state…], preserving state ([checked]/[disabled]/[expanded]/[level=N]). interactive=only actionable roles; bbox=append real bounding_box() coords (bbox=x,y,w,h) — genuine layout geometry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | Append real-Chrome bounding-box coords per element. | |
| depth | No | Limit snapshot depth. | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| interactive | No | Only actionable roles (button/link/textbox/checkbox/…). |