inspect_page_structure
Map a page’s semantic DOM hierarchy—headers, navigation, sections, headings—up to a chosen depth to diagnose structure and layout issues.
Instructions
Return a clean, readable structural hierarchy of the page DOM focusing on semantic elements (header, nav, main, section, footer, headings) up to max_depth.
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": "inspect_page_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | Max hierarchy depth (default: 4) | |
| root_selector | No | Root selector to start traversal from (default: "body") | |
| filter_semantic_only | No | Focus on meaningful semantic nodes (default: true) |