search_library
Finds library sections and figures by keyword or semantic search, returning ranked hits with snippets, section IDs, and ready-to-paste citations for quick lookup.
Instructions
Search library sections (and figures) by keyword — or semantically when the library has embeddings. Returns ranked hits with snippets, section ids and ready-to-paste citations. Scope with library and/or volume; then call get_library_section with a hit's section.id for the full text. Works on cloud libraries connected to the workspace too: pass the library's id, title or path as library — they are read-only and answered from Hillnote Cloud.
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": {
"workspace": "<workspace>",
"query": "<query>"
},
"name": "search_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Ranking mode (default keyword; semantic/hybrid need embeddings and fall back to keyword) | |
| kinds | No | What to match (default ["section"]) | |
| limit | No | Max results (default 20, max 100) | |
| query | Yes | Search terms; quote phrases ("carbon dioxide") | |
| offset | No | Pagination offset (default 0) | |
| volume | No | Restrict to one volume (id, folder name or title) | |
| library | No | Restrict to one library (id, folder path or title) | |
| workspace | Yes | Workspace path/name | |
| snippetChars | No | Approximate snippet length in characters (default 240) |