browser_interactive_map
Extracts a compact map of visible interactive elements with marks, roles, labels, selectors, and coordinates, so agents can click or fill elements directly while using fewer tokens than raw HTML.
Instructions
Extracts a condensed map of the visible interactive elements ([#1] button, [#2] input...).
Recommended discovery tool: 85% to 95% fewer tokens than raw HTML or AXTree. Gives for each visible element: its mark number, tag, ARIA role, text label, optimized CSS selector and box_2d coordinates [ymin, xmin, ymax, xmax] (0-1000). Lets you chain clicks and fills directly with browser_click(mark=N) or browser_fill(mark=N, value=...).
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_interactive_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | Your tab's id (from browser_new_tab, or a tab adopted with browser_adopt_tab). | |
| max_elements | No | ||
| viewport_only | 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 |