get_document
Retrieve the root DOM node to inspect page structure, with optional depth limits and iframe or shadow root piercing for complete document analysis.
Instructions
Get the root DOM node.
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_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum depth to return. -1 for full tree. Default: 2 | |
| pierce | No | Pierce through iframes and shadow roots. Default: false |