read_page
Get the accessibility tree of page elements to inspect structure as screen readers see it, with filters for interactive elements, depth, or specific branches.
Instructions
Get an accessibility tree representation of elements on the page. By default returns all elements including non-visible ones. Can optionally filter for only interactive elements, limit tree depth, or focus on a specific element. Returns a structured tree that represents how screen readers see the page content. If you don't have a valid tab ID, use tabs_context first to get available tabs. Output is limited to 50000 characters -- if exceeded, the tree is truncated at a line boundary with a note giving the full size; pass a larger max_chars, or use depth/ref_id to focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Return only changes since your previous read_page on this tab (+ added, - removed, ~ changed). | |
| depth | No | Maximum depth of the tree to traverse (default: 15). Use a smaller depth if output is too large. | |
| tabId | Yes | Tab ID to read from. Must be a tab in the current group. Use tabs_context first if you don't have a valid tab ID. | |
| filter | No | Filter elements: "interactive" for buttons/links/inputs only, "all" for all elements including non-visible ones (default: all elements) | |
| ref_id | No | Reference ID of a parent element to read. Will return the specified element and all its children. Use this to focus on a specific part of the page when output is too large. | |
| max_chars | No | Maximum characters for output (default: 50000). Set to a higher value if your client can handle large outputs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| provenance | No |