browser_tab_state
Inspect a tab's indexed DOM and accessibility tree, and capture live background screenshots via CDP even when the window is minimized or occluded, without Screen Recording permission.
Instructions
Inspect a browser tab's indexed DOM/Accessibility tree ([1], [2], ...) and/or capture a live background JPEG screenshot via CDP (works even when minimized or occluded, with zero Screen Recording permission required).
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": "browser_tab_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Tab ID (e.g. 'tab-1' or 'safari:w1:t1') from browser_list / browser_open_tab. | |
| tab_url | No | Alternative: match an open controllable tab by URL. | |
| browser_id | No | Optional browser filter when matching by tab_url. | |
| disable_diff | No | Return the full DOM/AX tree instead of a diff. | |
| include_cursor | No | Keep the in-tab virtual cursor & highlight visible in the captured screenshot (default false so screenshots stay clean). | |
| screenshot_only | No | Return only the screenshot (resets AX diff baseline). | |
| include_screenshot | No | Include live CDP JPEG screenshot (default false). |