find_text
Locate text matches within a webpage, returning detailed context and ranking content above navigation and boilerplate. Supports optional CSS scoping and exact matching.
Instructions
Find localized text matches and return [{ref, tag, attrs, before, match, after, text}]. Ranks article/main/content matches above nav/header/footer boilerplate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_chars | No | Characters before/after each match (default 80) | |
| exact | No | If true, exact cleaned-text match instead of substring (default false) | |
| limit | No | Max matches to return (default 20) | |
| selector | No | Optional CSS selector to limit search scope | |
| text | Yes | Substring to match (or exact string if exact=true) |