Extract Data
extractExtract visible text, HTML markup, page title, URL, or evaluate JavaScript from a webpage using CSS selectors or element references. Target specific elements or get page-level data with configurable character limit.
Instructions
Extract data from the page without a full snapshot. Types: text (visible text), html (markup), title, url, js (evaluate JavaScript). Use target with @eN or CSS selector for element-specific extraction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| type | No | What to extract. | text |
| target | No | @eN ref or CSS selector. Omit for page-level. | |
| js | No | JavaScript expression for type='js'. | |
| maxChars | No | Max output characters. |