read_page
Read the current page as a YAML-style accessibility tree and tag interactive elements with [ref_N] IDs so agents can target them for clicks, input, and lookup.
Instructions
Read the current page as a YAML-style accessibility tree. Interactive elements are tagged [ref_N] for use with computer/form_input/find. Output limited to 50000 chars by default.
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 |
|---|---|---|---|
| depth | No | Maximum tree depth (default 15). | |
| tabId | No | Tab ID to target. Omit to act on the current tab. | |
| filter | No | Filter elements ("interactive" = buttons/links/inputs only). | |
| ref_id | No | Reference ID of a parent element to focus on. | |
| max_chars | No | Maximum characters for output (default 50000). |