search_in_doc
Search a single PDF for relevant passages and return ranked results with section titles and page numbers. Use a known filename to avoid noise from other documents.
Instructions
Search within a SINGLE document for relevant passages.
Use this when you already know which PDF to search — avoids noise from
other documents. Returns ranked results with section title and page numbers.
Get valid filenames from list_docs first.
Args:
query: Natural language search query (e.g., 'maximum torque settings').
filename: The PDF filename to search within (e.g., 'manual.pdf').
num_results: Number of results to return (default: 5, max: 20).
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": {
"query": "<query>",
"filename": "<filename>"
},
"name": "search_in_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| filename | Yes | ||
| num_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |