text_clean
Extract clean, readable text from any webpage by stripping scripts, styles, navigation, and boilerplate. Returns collapsed whitespace content from a CSS selector or the best content root.
Instructions
Return chrome-stripped, JSON-stripped, whitespace-collapsed text from a selector or the best content root. Drops script/style/noscript/svg and page chrome (nav/header/footer/aside) plus obvious hidden widgets and repeated boilerplate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | Optional CSS selector to scope extraction. Default: best content root. | |
| max_chars | No | Optional max characters to return. |