Snapshot page
snapshotCapture a compact view of the current page with stable element refs, control states, and visible text, then retrieve only changes since a prior observation to track updates and act reliably.
Instructions
Compact view of the current page: URL, title, actionable elements with refs (e1, e2…), control states, and visible text. Refs stay stable while the element remains in the DOM; a new snapshot does not renumber them. Use diff=true (or since=sN) to see only changes since the last observation. Prefer refs over CSS selectors.
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 |
|---|---|---|---|
| diff | No | Return only changes since the previous snapshot. Profile default applies. | |
| since | No | Diff against a specific snapshot id (e.g. s4) instead of the latest. | |
| max_chars | No | Character budget (profile default). Controls get priority over body text. | |
| include_text | No | Include visible body text (default true). | |
| max_controls | No | Max controls (profile default). |