text
Retrieve the raw text of the first element matching a CSS selector. Avoid unnecessary browser overhead by extracting only the text you need.
Instructions
Get the textContent of the FIRST element matching the selector (default: body). Note: on Wikipedia/MDN/news sites, the first is often a hatnote or image caption, not the lead paragraph — prefer text_main for reading the page's primary content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector (default: body) |