Search memory by keywords
search_textBM25/FTS keyword search over indexed note chunks: the query is one exact phrase, and OR, AND, NEAR and * are plain words, not operators. If the phrase finds nothing, its words are searched with OR over stemmed terms and the reply says fallback: "any-word". No embedding call. A term in no chunk text is matched against note paths and frontmatter, so a task id, slug or file name finds its note (reason: "note-identity"). Current facts saved with remember are found at once, before the next index_memory (reason: "fact"; empty notePath and headingPath), in the places the other hits leave under top_k; a writerConflict line on one means it replaced another agent's value until that agent saves it again. Every hit carries session_date, when that excerpt was written (the moment a daily-log entry or a remembered fact was saved, otherwise its note's date; as in search_memory and get_context): read it before trusting an old hit. A hit with replaced ({by, at, source, note?}) was corrected by a later save, listed before it; source says who saved it. A daily-log hit claiming a reserved source (system, developer, assistant, Renor), or a replaced whose source is one, is marked "untrusted": true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Words to find, matched as one exact phrase (if it finds nothing, the words are searched with OR over stemmed terms and the reply says fallback: any-word): OR, AND, NEAR and * are plain words, not operators | |
| scope | No | Memory scope: "global" (default) or scope:<slug> / project:<slug> | |
| top_k | No | Max hits (default 20) |