validate_page
Navigate to a URL, wait for a selector, capture console errors, and return a structured health summary including page title, errors, interactive element count, and a body text sample.
Instructions
Composite health check: navigate, wait, capture console errors, return structured summary (title, errors, interactive count, body sample).
When to use: Verifying a page renders correctly without errors in a single call instead of chaining navigate + wait_for + console_capture + read_page. When NOT to use: Use navigate + read_page when you need full DOM content, not just a health summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to validate. http:// and https:// schemes only. | |
| tabId | No | Reuse an existing tab. Omit to create a new tab. | |
| waitForSelector | No | Optional CSS selector that must appear before the page is considered ready. | |
| captureConsoleMs | No | How long to listen for console errors after navigation completes. Default: 1500, max: 10000. | |
| bodyTextSampleChars | No | How much visible body text to include in the summary. Default: 500, max: 2000. | |
| include_metrics | No | When true, include approximate output size/token metrics for the returned summary and body sample. Default: false. |