consolidate
Find and merge duplicate or near-duplicate memory captures. Review similar groups, then confirm to consolidate them, with batch size for incremental processing.
Instructions
Find and merge duplicate or near-duplicate memories. Use this when you suspect redundant captures (e.g. same decision captured twice). Returns groups of similar captures. Set confirm=true to merge them. Use batch_size to limit how many captures are processed in one call (cost control).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "consolidate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true to merge duplicates. Without confirm, returns candidates only. | |
| threshold | No | Similarity threshold (0-1). Higher = stricter matching. Default 0.75. | |
| batch_size | No | Maximum captures to process in this batch. 0 = all (default). Use for incremental consolidation on large databases. | |
| session_key | No | The session key to consolidate. Default is hash(cwd). Use 'all' for all projects. |