Browser Extract
browser_extractExtract structured text or element attributes from a web page without raw HTML. Omit a selector to get visible page text, or provide one to return matching content.
Instructions
Extract structured text or attributes from the page without dumping raw HTML. With no selector, returns the page's visible text content (like a reader view). With a selector, returns the text (or a given attribute) of the matching element(s). Much smaller and more directly useful than browser_get_dom when you just need the content, not the markup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| multiple | No | If true, return an array of results for every match instead of just the first (default false). | |
| selector | No | CSS selector to scope extraction to. Omit to extract the whole page's visible text. | |
| attribute | No | Attribute to extract instead of text, e.g. "href", "src", "value". Requires selector. | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. |