find_text
Find localized text matches on a web page, returning contextual snippets with relevance ranking that prioritizes article content over navigation and footer.
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) |