Search Passages
search_passagesSearches the library at passage level using hybrid search over semantic chunks. Returns top passages with item_id, chunk_id, char offsets, snapshot_url (permanent R2 archive), saved_at, and score. Has a max_chars budget to control response size. Use this when you need precise citations with permanent links that survive link rot. For item-level results, use search_library instead.
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_passages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by a specific tag. | |
| mode | No | hybrid | |
| tags | No | Filter by multiple tags (AND). | |
| limit | No | Max passages to return. | |
| query | Yes | Search query terms or semantic question. | |
| cursor | No | Opaque cursor for pagination. | |
| fields | No | Projection: fields to include in response. | |
| 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. | |
| max_chars | No | Total character budget for all passages combined (~4 chars/token). | |
| tags_none | No | Exclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names). |