outline
Get a structural outline of a page or region to see headings, landmarks, forms, controls, links, and text blocks with selectors and coordinates. Use it before editing a region or comparing a mockup against the live app.
Instructions
Structural outline of a page or region: the shape an agent can act on, without a screenshot. Returns {selector, count, elements}, one entry per heading, landmark, section, form, label, control, link, image or text block inside selector (default "body"), capped at limit (default 200) in document order; each entry carries tag, level (h1-h6), text, ownText, leaf, name, id, classes and box [x, y, width, height]. A selector that matches nothing falls back to the whole body (the result still echoes the selector you asked for). Use it before editing a region or diffing a mockup against the app — page_state is the clickable list, styles the computed CSS, screenshot for humans. Reads only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| selector | No | body |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |