Browser Get Page Structure
browser_get_page_structureGet a readable page structure summary to analyze the DOM layout. Scope to a specific element and set max depth or children to control detail.
Instructions
Return a readable page structure summary.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>"
},
"name": "browser_get_page_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Max tree depth (default 4). | |
| selector | No | Scope to an element; omit for document body. | |
| sessionId | Yes | ||
| maxChildren | No | Max children per node (default 20). |