lib_index
Index local papers (PDF, JATS XML, text) to enable full-text search. Set a limit to cap the scan; otherwise all files are indexed.
Instructions
Index a directory of papers already on disk so lib_search can find them.
Handles PDF, JATS XML and text. limit of 0 means no cap; any other value
caps the scan and the result says so explicitly, because a capped scan
reported as a total is how an inventory lies.
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": {
"path": "<path>"
},
"name": "lib_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |