snapshot
Lists visible page elements and text with reusable refs for other tools; scope by selector, cap results with max, and return text or JSON.
Instructions
List visible elements and text with refs usable in other tools, one per line: ref role "name" href=... selector scopes to a subtree, max caps the list, boxes adds rects, format=json for objects.
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 |
|---|---|---|---|
| max | No | ||
| tab | No | tab id, defaults to current | |
| boxes | No | ||
| format | No | text (default) or json | |
| selector | No | ||
| request_timeout | No | Outer page request deadline in milliseconds; defaults to at least 30000 |