memory_crystallize
Create and maintain additive cluster graphs that group related thoughts into clusters with member edges, so agents can organize and recall connected context across sessions.
Instructions
Read and maintain the cluster graph: cluster thoughts plus the cluster edges pointing at their members. Additive only: nothing is deleted or overwritten. Answers { item, meta } / { items, meta }, with one documented exception: action=graph answers { items: nodes, edges, meta }, because a graph is two collections. Actions: graph, cluster, auto_cluster (Union-Find; preview→confirm, clusters created only with confirm: true). memory_recall action=search with is_cluster=true reads them; this tool creates them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "memory_crystallize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory — auto-resolves project. OPTIONAL for "graph" and "cluster" (always pass for those; auto_cluster operates globally). ACCEPTED AND IGNORED for "auto_cluster". | |
| tags | No | Tags. OPTIONAL for "cluster". REJECTED for "graph" and "auto_cluster". | |
| limit | No | Max nodes to return (default 500, 1-2000). OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster". | |
| title | No | Cluster title. OPTIONAL for "cluster". REJECTED for "graph" and "auto_cluster". | |
| action | Yes | Action | |
| fields | No | Fields to include in each node and edge; intersected with the columns the graph offers. OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster". | |
| offset | No | Offset for pagination (default 0, 0-1000000). OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster". | |
| status | No | Filter by status (default: active). OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster". | |
| confirm | No | CONSUMED by "auto_cluster" (true creates clusters; false/omitted previews). REJECTED for "graph" and "cluster". | |
| dry_run | No | Removed; use confirm. | |
| project_id | No | Removed; use cwd. | |
| min_members | No | Min members per cluster (default from config). OPTIONAL for "auto_cluster". REJECTED for "graph" and "cluster". | |
| thought_ids | No | Thought IDs. REQUIRED for "cluster". REJECTED for "graph" and "auto_cluster". | |
| min_age_days | No | Min age in days (default from config). OPTIONAL for "auto_cluster". REJECTED for "graph" and "cluster". | |
| preview_token | No | OPTIONAL preview token returned by a prior preview. CONSUMED by "auto_cluster" (true executes with token validation; missing/stale fails). REJECTED for "graph" and "cluster". | |
| min_similarity | No | Maximum cosine distance between neighbours (0-1; lower is tighter, default from config). OPTIONAL for "auto_cluster". REJECTED for "graph" and "cluster". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Action payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta } |