search_text
Find specific text within PDF documents by searching with case-insensitive queries and retrieving results with page numbers and surrounding context.
Instructions
Search for text in a PDF file (case-insensitive).
Returns a list of hits with page number and surrounding context.
Args:
filename: Path to a PDF file.
query: Text to search for.
context_chars: Characters of context to include around each hit. Default 100.
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": {
"filename": "<filename>",
"query": "<query>"
},
"name": "search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| query | Yes | ||
| context_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |