misc

Search your memory (dev docs / papers + vault markdown files) and get ranked snippets with IDs.

Search your memory (dev docs / papers + vault markdown files) and get ranked snippets with IDs.

COST PRINCIPLE: search returns snippets only; call memory_get for full content.

MODES:

  • keyword (default): hybrid keyword + semantic match across title/path/content
  • latest_state: most recent memory, preferring entries saved with memory_type='state' (falls back to plain recency when no typed entries exist)

Returns { found: false, message: "no memory found" } when nothing matches — treat that as a definitive empty signal and stop searching (do not guess).

post/api/mcp/tools/memory_search

Request

  • Base URL: https://api.ainote.dev
  • URL: https://api.ainote.dev/api/mcp/tools/memory_search
  • Auth: API key in header Authorization

Request body

querystring required

Search text (e.g. 'render deploy key', 'ainote jwt'). May be blank only in latest_state mode.

mode'keyword' | 'latest_state'

keyword (default) or latest_state

sourcesstring[]

Memory stores to search. Default: both.

limitinteger

Max results (default 10, max 20)

hopinteger

Expand results by following [[wikilinks]] N hops from keyword hits (vault only). Scores decay 0.5 per hop. Default 0 (off).

Response

Tool executed successfully

Changes

No recorded changes to this operation across all 1 revision of this API.