find
Search OCR-extracted text from scanned PDFs or images by regex to get matching lines with page, bounding box, confidence scores, and surrounding context.
Instructions
Every line matching the pattern, with its page, box, confidence and the lines round it.
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": {
"path": "<path>",
"pattern": "<pattern>"
},
"name": "find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| path | Yes | ||
| limit | No | ||
| pages | No | ||
| regex | No | ||
| context | No | ||
| pattern | Yes | a regular expression, case ignored | |
| force_ocr | No |