Skip to main content

Knowledge Tools

These 12 tools manage the knowledge graph — a persistent store of notes, facts, and decisions with typed relations and cross-graph links. Notes are automatically mirrored to .notes/ markdown files for IDE access.

info

These tools are always available. Mutation tools (marked below) are hidden when the knowledge graph is set to readonly.

notes_create

Mutation — hidden in readonly mode

Creates a new note with automatic slug ID generation, embedding, and file mirror.

Parameters

ParameterRequiredDescription
titleYesNote title
contentYesNote content (markdown supported)
tagsNoArray of tags for categorization

Returns

{ noteId } — the generated note ID (slug of the title).

When to use

Persist architectural decisions, non-obvious context, or facts that should survive across conversations.


notes_update

Mutation — hidden in readonly mode

Partially updates a note. Only send the fields you want to change. Re-embeds automatically if title or content changes.

Parameters

ParameterRequiredDescription
noteIdYesNote ID to update
titleNoNew title
contentNoNew content
tagsNoNew tags (replaces existing)

Returns

{ noteId, updated } — confirmation with timestamp.


notes_delete

Mutation — hidden in readonly mode

Deletes the note, all its relations, orphaned proxy nodes, and the mirror directory.

Parameters

ParameterRequiredDescription
noteIdYesNote ID to delete

Returns

{ noteId, deleted } — confirmation.


notes_get

Fetches a note by ID.

Parameters

ParameterRequiredDescription
noteIdYesNote ID

Returns

{ id, title, content, tags, createdAt, updatedAt } — full note content and metadata.


notes_list

Lists notes with optional filters. Excludes internal proxy nodes.

Parameters

ParameterRequiredDefaultDescription
filterNoSubstring match on title
tagNoFilter by tag
limitNo20Maximum results

Returns

Array of { id, title, tags, updatedAt }.


Hybrid semantic search over notes with BFS graph expansion.

Parameters

ParameterRequiredDefaultDescription
queryYesSearch query (natural language)
topKNo5Seed results for BFS
bfsDepthNo1BFS expansion hops
maxResultsNo5Maximum results
minScoreNo0.5Minimum relevance score
bfsDecayNo0.8Score decay per hop
searchModeNohybridhybrid, vector, or keyword

Returns

Array of { id, title, content, tags, score } — matching notes ranked by relevance.

When to use

Finding notes by meaning. For instance: "What did we decide about the authentication approach?"


Mutation — hidden in readonly mode

Creates a typed relation between two notes, or from a note to a node in another graph.

Parameters

ParameterRequiredDescription
fromIdYesSource note ID
toIdYesTarget note ID or external node ID
kindYesRelation type (free-form string, e.g. "references", "contradicts", "extends")
targetGraphNoIf linking to another graph: "docs", "code", "files", "tasks", "skills"
projectIdNoTarget project ID (for cross-project links in workspaces)

Returns

{ fromId, toId, kind, targetGraph?, created }.

When to use

Connect notes to each other or to nodes in other graphs. When targetGraph is set, Graph Memory validates the target exists and creates a phantom proxy node for the connection.


Mutation — hidden in readonly mode

Deletes a relation and cleans up orphaned proxy nodes.

Parameters

ParameterRequiredDescription
fromIdYesSource note ID
toIdYesTarget note ID or external node ID
targetGraphNoTarget graph (if cross-graph link)
projectIdNoTarget project ID

Returns

{ fromId, toId, deleted }.


Lists all relations for a note (both incoming and outgoing). Resolves proxy IDs to original node IDs transparently.

Parameters

ParameterRequiredDescription
noteIdYesNote ID

Returns

Array of { fromId, toId, kind, targetGraph? }.


notes_find_linked

Reverse lookup: finds all notes that link to a specific node in another graph.

Parameters

ParameterRequiredDescription
targetIdYesTarget node ID in the external graph
targetGraphYesWhich graph the target is in ("docs", "code", "files", "tasks", "skills")
kindNoFilter by relation kind
projectIdNoTarget project ID

Returns

Array of { noteId, title, kind, tags }.

When to use

Before modifying code, check if any notes document it. For instance: "What notes reference src/auth.ts::login?"


notes_add_attachment

Mutation — hidden in readonly mode

Attaches a file to a note. The file is copied into the note's mirror directory.

Parameters

ParameterRequiredDescription
noteIdYesNote ID
filePathYesAbsolute path to the file on disk

Returns

{ filename, mimeType, size, addedAt }.

note

Max 10 MB per file. Max 20 attachments per entity.


notes_remove_attachment

Mutation — hidden in readonly mode

Removes a file attachment from a note.

Parameters

ParameterRequiredDescription
noteIdYesNote ID
filenameYesFilename to remove

Returns

{ deleted: filename }.