get_page_map
Map a web page's interactive elements, landmarks, and headings in one call to see what actions are available before clicking, with roles, names, states, and CSS selectors.
Instructions
Semantic page map in ONE call: every interactive element (links, buttons, inputs, custom controls) plus landmarks and headings, in document order — each with its ARIA role, accessible name, live state (disabled/checked/expanded/value), and a ready-to-use CSS selector. The fastest way to answer 'what can I do on this page?' — use it to orient before clicking instead of multiple get_page_elements calls. Interactive elements with no accessible name are flagged unnamed (an accessibility finding in itself). Output is compact: only truthy state fields, capped at max_nodes with an explicit truncated flag.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "get_page_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_nodes | No | Max nodes to return (default: 150); 'total' reports how many exist | |
| session_id | Yes | Session ID | |
| include_frames | No | List the page's iframes (selector, url, name, cross_origin) with ready select_iframe selectors — the way into Stripe/hosted-checkout card fields (default: false; frame_count is always returned) | |
| include_hidden | No | Include invisible elements, flagged hidden (default: false) |