Skip to content

Tool reference

The 12 tools below are what your MCP client sees on tools/list. Descriptions mirror packages/mcp/src/tools.ts verbatim — that file is the source of truth.

Capture a single turn (user message, assistant reply, tool call, agent event). Idempotent by client_turn_id when supplied. Primary write path.

inputtypenotes
role"user" | "assistant" | "tool" | "system" | "agent" | "event"Default event.
contentstringUp to 64 KB.
session_idstring?Group turns into a session for summarization + scoped search.
metadataRecord<string, unknown>?Arbitrary tags; included in the dedup hash.
client_turn_idstring?Caller-supplied idempotency token; replays return the same turn_id.

Explicit long-term memory write. Survives consolidation; bypasses turn-extraction heuristics.

inputtypenotes
contentstringUp to 8 KB.
tagsstring[]?Up to 20 tags, 64 chars each.
ttl_msnumber?Soft-deletes the memory after this many ms.
metadataRecord<string, unknown>?

Soft-delete a memory by id. Removes from search index; audit trail preserved.

Produce or refresh the rolling summary for a session. Auto-runs every ~20 turns or 10 minutes; pass force=true to summarize now. Writes a memory of kind=consolidated and broadcasts consolidation_completed.

Hybrid (dense + lexical + DO-hot) retrieval over recorded turns and pinned memories for this project.

inputtypenotes
querystringUp to 4 000 chars.
knumber?1–100, default 10.
session_idstring?Restrict to a session.
mode"auto" | "chunks" | "summaries" | "entities" | "code"Default auto. See Quickstart §2.

Look up structured entities extracted from turns: symbols (camelCase/snake_case identifiers), files (paths with extensions), error codes (TS2345, ERR_*, EACCES), and CLI commands. Deterministic exact/prefix match — pair with search_memory for full-text recall.

inputtypenotes
querystring
kinds("symbol" | "file" | "error_code" | "command")[]?Restrict to a subset.
knumber?1–100, default 10.

Chronological recall of the most recent turns for this project (optionally scoped to a session). DO hot-cache; cheap.

Snapshot of pinned memories + active broadcasts + last 50 turns. One round-trip rehydrate for an agent.

Upsert a project-scoped key/value pointer (e.g. active_sprint, current_pr). Fans out to every subscriber sub-second.

Read a broadcast by key. Returns null if not set. Omit the key to list every broadcast for this project.

Mark the caller as active in this project. Fans out a presence_updated broadcast. Idempotent — safe to call on a short interval (e.g. every 30 s from a long-running agent).

List users who have heartbeat-ed or recorded activity within the last since_ms (default 30 minutes).