Read page elements
read_pageLists page elements with reusable reference IDs so agents can target buttons, links, and inputs for form input or computer actions; re-read after navigation or node replacement to avoid stale refs.
Instructions
List elements on the page as [ref_N] role "name" lines. Each opaque ref identifies the original node in its document and can be passed unchanged to form_input or computer (ref). Stale or duplicated refs fail; read again after navigation or node replacement. Default filter 'interactive' (buttons/links/inputs); use 'all' for a broader dump. Refs come from the most recent read_page/find call.
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 |
|---|---|---|---|
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| filter | No | interactive (default) or all | |
| compact | No | Prioritize useful content, deduplicate text and retain actionable refs | |
| frameId | No | Compact mode: limit to a frame | |
| maxChars | No | Max output chars (default 12000) | |
| maxResults | No | Max elements (default 200, max 1000) |