Extract DOM Content
extractDomExtract HTML, text, and DOM structure from any webpage for content analysis, selector discovery, or pre-capture validation. Scope extraction with an optional CSS selector.
Instructions
Extract HTML, text, and DOM structure from a webpage.
USE WHEN: Need text content for analysis, DOM structure for selector discovery, or pre-capture page validation. USE captureScreenshot WHEN: Need visual verification or rendered UI.
• url (required): Page URL • selector (optional): CSS selector to scope extraction (e.g., 'main', 'article')
EXAMPLE: { "url": "https://example.com", "selector": "article" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The webpage URL to extract DOM from. | |
| selector | No | CSS selector to scope extraction (e.g., 'main', '#content'). Omit for entire document. |