text
Retrieve the visible text from any element on a page by CSS selector. Defaults to body if no selector given.
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) |