snapshot
Capture a compact text outline of a browser page with interactive element references across iframes and shadow DOM; filter by text, viewport, or mode to inspect content without screenshots.
Instructions
Compact page outline: text plus [ref] lines for interactive elements, across iframes and shadow DOM. Cheaper than a screenshot.
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": "snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | While a modal dialog is open, also show the page behind it | |
| max | No | Char budget, default 8000 | |
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| mode | No | interactive = refs only; text = readable page text | |
| hrefs | No | Show link URLs (off by default to save tokens) | |
| query | No | Only lines containing all these words; "a|b" = either. Plain words, not a regex | |
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| viewport | No | Only what is on screen |