Inspect DOM
browser_get_domRetrieve current HTML or text from a page region to inspect transient DOM state or hidden content. Requires acknowledging raw capture and a selector to narrow the scope.
Instructions
Use when current HTML or text for a page region is needed to understand transient DOM state, hidden content, or selector behavior. Preconditions: an active page and acknowledgeRawCapture: true are required; narrow with a selector when possible. Next: use browser_get_elements for actionable targets or compare DOM mutations in a trace. Sensitivity: raw DOM and text may contain secrets, personal data, hidden form values, or externalized artifacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| maxBytes | No | ||
| selector | No | ||
| acknowledgeRawCapture | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |