Inspect website component
inspect_componentUse this when you need an exact style and state X-ray of a known element, role, or text target. Avoid it when you need portable HTML, scoped CSS, assets, and a screenshot; use clone_section.
Instructions
Use this when you need an exact style and state X-ray of a known element, role, or text target. Avoid it when you need portable HTML, scoped CSS, assets, and a screenshot; use clone_section. Return targeted computed styles, cascade rules, variables, box geometry, fonts, and interaction states. Cost: light. Session: uses one browser page for one URL. Does not write files. Possible follow-ups if evidence is still missing: clone_section, capture_motion, compare_replica.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http:// or https:// URL to inspect. | |
| role | No | Accessible role, for example button or navigation. | |
| text | No | Visible text used with getByText targeting. | |
| roleName | No | Accessible name used with role targeting. | |
| selector | No | Playwright CSS selector; pierces open shadow DOM. | |
| timeoutMs | No | Navigation timeout in milliseconds. | |
| userAgent | No | Optional browser user-agent override. | |
| waitUntil | No | Page lifecycle event to await before extraction. | domcontentloaded |
| autoScroll | No | Scroll before targeting. Defaults off for fast component inspection; a zero-match retry still checks lazy content. | |
| maxMatches | No | Maximum matching elements to return in detail. | |
| maxScrolls | No | Maximum scroll steps when scrolling is needed. | |
| frameSelector | No | Optional iframe selector containing the target. | |
| includeStates | No | Capture :hover, :focus, and :active computed styles via CDP (Chromium). | |
| viewportWidth | No | Browser viewport width in CSS pixels. | |
| viewportHeight | No | Browser viewport height in CSS pixels. | |
| includeBoxModel | No | Include content, padding, border, and margin rectangles. | |
| allowPrivateNetwork | No | Allow localhost and private-network URLs. Enable only for trusted sites. | |
| includeMatchedRules | No | Include matched CSS rules, origins, and resolved custom properties. | |
| includePlatformFonts | No | Include the platform fonts Chromium actually used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| guidance | Yes |