snapshot
Converts the current page into a compact numbered outline of headings, text, links, buttons, and form fields, with refs for click or fill; take a new outline after page changes.
Instructions
Show the current page as a compact outline: headings and text in reading
order, and every link, button and form field numbered ([e12]) with its
name, address or value. Pass a ref to click or fill. Far smaller than
read_html; take a new snapshot after the page changes. null when
selector matches nothing.
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 |
|---|---|---|---|
| selector | No | CSS selector of one element; empty for the whole page. | |
| max_chars | No | Cut the outline after this many characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |