ocr_screenshot_search
Find a word or phrase on the current page via OCR; returns match coordinates for clicking. Searches word, line, paragraph, and block levels.
Instructions
OCR the current page and search for a specific word or phrase. Returns all matches as [{ phrase, granularity, center_x, center_y }] — center_x/center_y are ready to pass to click_at_coordinates. Searches across all granularity levels (word → line → paragraph → block) so both single words and multi-word phrases are found.
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": {
"session_id": "<session_id>",
"needle": "<needle>"
},
"name": "ocr_screenshot_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Tesseract language code(s), e.g. 'eng', 'deu', 'eng+deu' (default: 'eng'). | |
| needle | Yes | Case-insensitive substring to search for, e.g. 'akzeptieren' or 'Sign in'. | |
| session_id | Yes | Session ID returned by start_browser. |