snapshot
Lists visible interactive elements with stable refs across DOM, Shadow DOM, and same-origin iframes, so agents can target page controls. Filter by selector, viewport, or text to narrow results.
Instructions
List visible interactive elements with refs (e0, e1, ...) across DOM, Shadow DOM, and same-origin iframes. Use filter/viewport_only to narrow; include_hrefs=True to show link URLs.
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 |
|---|---|---|---|
| tab | No | ||
| filter | No | ||
| selector | No | body | |
| max_length | No | ||
| max_elements | No | ||
| include_hrefs | No | ||
| viewport_only | No | ||
| include_shadow | No | ||
| include_iframes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |