Inspect page structure
inspect_pageReturns a compact, visibility-aware DOM tree with key attributes and short text for a page. Use it to understand page structure without dumping full HTML.
Instructions
Return a compact, visibility-aware DOM tree with useful attributes and short text. Prefer this over dumping document HTML. If the user's visual reference remains ambiguous, stop guessing and use pick_element with an interaction prompt.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | No | Target page id from get_pages; omit to use the selected page | |
| max_depth | No | DOM tree depth | |
| max_nodes | No | Hard node limit | |
| include_hidden | No |