Tools Reference

Tools Reference

All tools operate on the .ai-knowledge store under the configured --root directory.

warning
Topic naming rules

Topics must not contain / or \\, and cannot be . or ...

recall_general_memory

Recalls the general project memory from the index.

  • Input: None
  • Output: Plain text content from index.mdk

recall_memory

Recalls detailed memory for a specific topic.

Input

FieldTypeRequiredDescription
topicstringyesThe topic to recall.

Output

Markdown that includes the topic title, tags, last updated date, and content.

search_memories

Searches memories by tags.

Input

FieldTypeRequiredDescription
tagsstring[]yesTags to match (case-insensitive).

Output

A list of matching topic names or a "No topics found" message.

list_memories

Lists all available memory topics.

  • Input: None
  • Output: A comma-separated list of topic names.

memorize_new_topic

Memorizes a new topic and updates the index.

Input

FieldTypeRequiredDescription
topicstringyesTopic name for the new memory.
tagsstring[]yesTags to associate with the topic.
summarystringyes1-2 sentence summary used in the index.
contentstringyesFull Markdown content for the topic.

Behavior

  • Fails if the topic already exists.
  • Writes <topic>.mdk and updates index.mdk.

refine_memory

Refines an existing memory and updates the index.

Input

FieldTypeRequiredDescription
topicstringyesTopic to update.
tagsToAddstring[]noTags to add.
tagsToRemovestring[]noTags to remove.
newSummarystringnoReplacement summary for the index.
newContentstringnoReplacement Markdown content.

Behavior

  • Updates tags and last_updated timestamp.
  • Updates the index summary when newSummary is provided.

memorize_general_info

Memorizes or updates the general project information.

Input

FieldTypeRequiredDescription
contentstringyesMarkdown content for the general section.

Behavior

  • Replaces the "General Project Knowledge" section in index.mdk.
  • Rejects content that includes the "Specialized Knowledge" header.

forget_memory

Forgets a memory topic and removes it from the index.

Input

FieldTypeRequiredDescription
topicstringyesTopic to remove.

Behavior

  • Deletes <topic>.mdk when possible.
  • Always removes the topic summary from index.mdk.

Experimental Tools

warning
Requires --experimental flag

The tools below are only available when the server is started with the --experimental flag.

outline_symbol

Returns the relation tree for a named symbol, showing all its connections across the codebase.

Input

FieldTypeRequiredDescription
symbolstringyesSymbol name to look up (e.g. RegisterExtractor or outline.(*OutlineManager).RegisterExtractor).
languagestringyesTarget language (e.g. go).
filestringnoRestrict the search to a single file (relative path from project root).
depthintegernoLevels of relations to traverse. Default: 2.
relationsstring[]noFilter to specific relation kinds (see Code Outline).
omit_nativebooleannoWhen true, omit standard-library and built-in symbols.
formatstringnotext (default) or json.

outline_file

Returns the relation tree for every symbol declared in a source file.

Input

FieldTypeRequiredDescription
filestringyesRelative path to the source file.
languagestringyesTarget language (e.g. go).
depthintegernoLevels of relations to traverse. Default: 2.
relationsstring[]noFilter to specific relation kinds.
omit_nativebooleannoOmit standard-library and built-in symbols.
formatstringnotext (default) or json.

outline_project

Returns the full relation tree for every symbol across the entire project.

Input

FieldTypeRequiredDescription
languagestringyesTarget language (e.g. go).
depthintegernoLevels of relations to traverse. Default: 2.
relationsstring[]noFilter to specific relation kinds.
omit_nativebooleannoOmit standard-library and built-in symbols.
formatstringnotext (default) or json.