inspect_compact
List interactive elements, forms, and readable sections across frames and open Shadow DOM, capped by maxChars, to provide compact snapshots for browser automation.
Instructions
List interactive elements (with refs), forms or readable sections across frames and open Shadow DOM, capped at maxChars.
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": "inspect_compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | interactive | |
| boxes | No | Include element bounding boxes [box=x,y,w,h] in snapshot lines. | |
| query | No | Filter elements matching regex or substring. | |
| tabId | No | ||
| maxChars | No | ||
| savePath | No | File under cwd or TURBO_BROWSER_SAVE_ROOT. | |
| selector | No | ||
| onlyChanged | No | Omit elements unchanged since the previous inspect_compact snapshot. | |
| includeFrames | No |