Search a page for text
find_in_pageLocates exact phrases or regular expressions in web pages or PDFs, returning each match with surrounding context and its section ID for quick reference.
Instructions
Finds exact text (case-insensitive) or a regular expression in a page or PDF and returns each match with surrounding context and its section id. For facts whose wording you know: a name, a number, an error message.
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": {
"url": "<url>",
"text": "<text>"
},
"name": "find_in_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | http(s) URL | |
| text | Yes | ||
| regex | No | ||
| context | No | chars around each match, default 200 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| total | Yes | ||
| matches | Yes |