page_map
Discover the structural map of a web page: headings, landmarks, forms, links, and interactive elements. Use scope to inspect specific dialogs or regions without distractions.
Instructions
Get a comprehensive structural map of the current page including headings (h1–h6 with section sizes), landmark regions, forms with field details, links (text + href, capped at 50), and interactive elements (buttons, inputs, selects with state and @eN refs). Also returns a regions hierarchy (sidebar/main/dialog), the active_dialog, and non-form controls alongside headings/landmarks/links/interactive. Use to discover page structure before interacting, or with scope to inspect a specific modal/dialog without background noise. Scope accepts semantic tokens ('dialog', 'main', 'sidebar') or a region handle (@r1) in addition to a raw CSS selector. Each interactive element returns a stable @eN reference for use in click, fill_form, hover, press_key, and select_option.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | CSS selector to scope all queries within (e.g. "[role='dialog']" for modal content only, ".sidebar" for a specific region). If omitted, queries the full page. |