The agent's shared SQLite brain database connection.
Insert a new memory trace row into memory_traces.
Defaults applied when optional fields are absent:
type → 'episodic'scope → 'user'tags → []The trace is created with strength = 1.0 (maximum encoding strength)
and deleted = 0 (active). No embedding is computed here — the background
EmbeddingEncoder will embed it asynchronously.
Memory add input (content, optional type/scope/tags).
Tool execution context used to resolve the scope ID.
{ traceId } on success, or an error result.
Readonly idGlobally unique tool identifier.
Readonly nameLLM-facing tool name (snake_case, as the LLM will call it).
Readonly displayHuman-readable display name for UIs and logs.
Readonly descriptionDescription shown to the LLM when deciding which tool to invoke. Must be comprehensive enough for the model to understand when to call this.
Readonly categoryLogical category for discovery and grouping.
Readonly hasThis tool writes to the database.
Callers may request confirmation before execution when hasSideEffects = true.
Readonly inputJSON schema for input validation and LLM tool-call construction.
All optional fields default gracefully inside execute().
ITool implementation that stores a new memory trace in the agent's SQLite brain database.
Usage: