ask_library
Answer questions from your personal PDF library with synthesized, cited summaries using PaperQA2.
Instructions
Answer a question using the user's indexed PDF library via PaperQA2.
Searches the pre-built index (see index_library_pdfs()) and returns
a synthesised answer with citations from the source papers.
Args:
question: Natural language question to answer from the library.
top_k: Number of source passages to retrieve before synthesis (default 5).
scope: Which index to query. "default" = full library. "ph_library" = PH background only.
Build the index first with index_library_pdfs(scope=<scope>).
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": {
"question": "<question>"
},
"name": "ask_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| top_k | No | ||
| scope | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |