Read page structure
read_pageExtracts an accessibility-tree outline of a browser tab with ref_N element references for clicking, form input, scrolling, and file upload, including iframe content.
Instructions
Get an accessibility-tree style outline of the page with element refs (ref_N) usable by computer, form_input, scroll_to and file_upload. Includes the contents of iframes. By default returns all elements (non-visible ones are marked hidden); filter='interactive' returns only visible buttons/links/inputs. Output is limited to max_chars (default 50000).
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": {
"tabId": "<tabId>"
},
"name": "read_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum tree depth (default 15). | |
| tabId | Yes | Tab ID from tabs_context / tabs_create. | |
| filter | No | "interactive" for visible buttons/links/inputs only, "all" (default) for everything. | |
| ref_id | No | Only return this element and its descendants. | |
| max_chars | No | Maximum output characters (default 50000). |