get_snapshot
Lists visible headings and interactive controls with reference selectors so agents can inspect page structure and target elements without taking a screenshot or fetching the full document.
Instructions
List visible headings and controls, one line each with a ref, role, name, and state, e.g. e3 textbox "Email" value="ada@example.com". ref=e3 works as any tool's selector until the page navigates; controls inside iframes get refs like f1e3. Far cheaper than get_document or 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": "get_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 100. | |
| headings | No | Default true. | |
| selector | No | Only inside this element. | |
| sessionId | No |