Read the page/window structure (fast, cheap)
read_pageReads a focused or specified window's live accessibility tree to return interactive elements with roles, coordinates, and refs for clicking or typing, plus filters to narrow busy pages.
Instructions
The default way to see what's on screen. Reads the live accessibility tree (same API screen readers use) for the focused window (or a given window_address) and returns every interactive element (buttons, links, fields, checkboxes, etc.) with its exact screen coordinates and a short ref like 'e3'. Costs a few hundred tokens, not an image. Use filter_text/filter_role to narrow a busy page. Follow up with click_element/type_into_element using the ref. Only fall back to screenshot if you need to see something visual (an image, canvas, layout) that has no accessible representation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| filter_role | No | Only return elements of this role (several with |, e.g. 'entry|combo box' — one walk of the page), e.g. 'button', 'link', 'entry', 'heading', 'image', 'dialog' (popups/cookie banners/size sheets show up as 'dialog' — filter on it to read what the open popup contains: each dialog row, marked DIALOG-ROOT, followed by its buttons, options and list items). | |
| filter_text | No | Only return elements whose accessible name contains this (case-insensitive). | |
| filter_state | No | Only return elements that REPORT this state — e.g. filter_state 'pressed' finds the currently chosen option in a variant picker. Combines with filter_text/filter_role: an element must match ALL filters given. This can only express the PRESENCE of a state: there is no way to ask for 'not checked', because an unchecked control and one that never exposes the state at all look identical here. | |
| include_text | No | Also include static text/paragraphs/headings for reading page content, not just interactive elements. | |
| start_at_ref | No | Read from this ref (from the previous read_page) onward, in page order — e.g. a product's heading, to read a buy box that sits past the row limit. | |
| window_address | No | Defaults to the currently focused window. |