Search Library
search_librarySearches the library by keyword and meaning using hybrid search (FTS5 + Vectorize). Matches saved articles, personal notes, and notes imported from Google Keep, Evernote (ENEX), Mem or Markdown exports. Returns item-level items with snippets. Query is treated as plain text (no field filter syntax); use tag or tags_* arguments for filtering. For passage-level citations with snapshot URLs, use search_passages instead. For an exact title or url lookup, use find_item instead (no search, no embeddings).
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>"
},
"name": "search_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter results by a specific tag. | |
| mode | No | hybrid | |
| tags | No | Filter by multiple tags (AND). | |
| limit | No | Max results to return. | |
| query | Yes | Search query terms or semantic question. Treated as plain text (no field filter syntax); use tag or tags_* arguments for filtering. | |
| cursor | No | Opaque cursor for pagination (alt. to offset). | |
| fields | No | Projection: fields to include in response. | |
| offset | No | Pagination offset. | |
| tags_all | No | Only items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names). | |
| tags_any | No | Only items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names). | |
| untagged | No | Only items without any tag. | |
| tags_none | No | Exclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names). | |
| read_state | No | Only items in this read state. |