inspect
Query a webpage to extract focused state: headings, forms, errors, tabs, and interactive elements. Returns only scoped results.
Instructions
Extract focused page state by query. Returns headings, form fields, errors, tabs, and interactive counts scoped to the query intent.
When to use: Checking focused aspects of page state (forms, errors, tabs) without loading the full DOM. When NOT to use: Use read_page for full DOM/AX tree, or find to locate a specific element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to inspect | |
| query | Yes | What to inspect (natural language) | |
| scope | No | Element scope. Default: visible | |
| include_metrics | No | When true, append approximate returned size/token metrics to text output. Default: false. |