browser_axtree
Retrieves a page's accessibility tree as a compact snapshot, providing element references for clicking, filling, and other browser automation actions.
Instructions
Accessibility tree of the page via CDP. The value of a password, a one-time code or a bank card: "[masked value]".
mode="snapshot" (recommended, like Playwright MCP's ARIA snapshot): the whole page as compact indented lines,
- role "name" [states] [#N]: value; every enabled control gets a reference [#N] to pass as mark=N to
browser_click, browser_fill, browser_hover, browser_select_option... (valid until the next snapshot, interactive
map or vision_inspect of this tab). Main frame only (cross-origin iframes: browser_interactive_map or
browser_find). max_lines caps the lines (20 to 2000). mode="full": raw AX nodes (first 100).
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": {
"tab_id": "<tab_id>"
},
"name": "browser_axtree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | full | |
| tab_id | Yes | Your tab's id (from browser_new_tab, or a tab adopted with browser_adopt_tab). | |
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes | ||
| warning | No | Emergency stop hotkey not held, or similar notice | |
| untrusted_note | No | Page text that looks like instructions aimed at an AI |