search_page
Search the visible text of the current page for a term or regex and get matches with surrounding context. Locate content directly without needing a snapshot or screenshot.
Instructions
Grep the CURRENT page's visible text and return matches with surrounding context. Costs nothing compared to a snapshot or a screenshot — use it first to find where a term actually appears.
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": "search_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Substring, or a regex source when regex=true | |
| regex | No | ||
| max_matches | No | ||
| context_chars | No | ||
| case_sensitive | No |