inspect_page
Analyze a live web page in a headless browser to capture its accessibility tree, component structure, performance metrics, and an optional screenshot.
Instructions
Inspect a live web page using a headless browser. Extracts accessibility tree, component structure, performance metrics, and an optional screenshot. Requires Playwright (optional dependency).
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": {
"target_url": "<target_url>"
},
"name": "inspect_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_for | No | When to consider the page loaded | load |
| target_url | Yes | The URL to inspect (http:// or https:// only). Private/internal addresses are blocked. | |
| timeout_ms | No | Navigation timeout in milliseconds (5000-60000) | |
| viewport_width | No | Viewport width in pixels (320-3840) | |
| viewport_height | No | Viewport height in pixels (240-2160) | |
| include_screenshot | No | Include a base64 PNG screenshot in the response |