search_and_open
Search for text within a PDF and navigate directly to the specified search result.
Instructions
Search for text in PDF and open to the specified result.
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": "search_and_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the PDF file | |
| query | Yes | Text to search for | |
| result_index | No | Which search result to open (1-indexed, default: 1) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |