find_and_highlight_text
Search PDF files for specific text and highlight matches on selected pages. Returns position information for each occurrence.
Instructions
Find text and return information for highlighting matches.
Args:
file_path: Path to PDF file
query: Text to search for
pages: Page range (e.g., '1,3,5-10,-1') or None for all pages
case_sensitive: Whether search is case-sensitive (default: False)
Returns:
JSON string with page highlights and position information
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": {
"file_path": "<file_path>",
"query": "<query>"
},
"name": "find_and_highlight_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| query | Yes | ||
| pages | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |