take_snapshot
Capture the page's accessibility tree or DOM snapshot within a configurable timeout and node limit.
Instructions
Get a bounded accessibility tree, or a labelled DOM fallback.
Args: timeout_ms: Maximum wait for snapshot collection (1..30000). A hung error-page accessibility query returns an error without restarting the browser or replaying navigation. max_nodes: Maximum retained tree containers (1..5000). Depth is capped at 16 and individual strings at 2000 characters; truncation is explicit.
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": "take_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_nodes | No | ||
| timeout_ms | No |