find_text
Locate specific text on a webpage and retrieve surrounding context, prioritizing main content over navigation and boilerplate.
Instructions
Find localized text matches and return [{ref, tag, attrs, before, match, after, text}]. Ranks article/main/content matches above nav/header/footer boilerplate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "find_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Substring to match (or exact string if exact=true) | |
| 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 | |
| context_chars | No | Characters before/after each match (default 80) |