browser_get_dom_snapshot
Capture a compact DOM snapshot for AI agents to inspect page structure, filter by selector, and control depth for frontend debugging.
Instructions
Capture a compact agent-friendly DOM snapshot.
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": "browser_get_dom_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | ||
| selector | No | ||
| sessionId | No | Browser session ID; optional when exactly one session exists. | |
| includeText | No | ||
| includeAttributes | No |