query_associative_memory
Search stored code patterns by code snippet to retrieve similar examples and identify known bugs or antipatterns from prior execution outcomes.
Instructions
Searches stored code patterns using Fly-LSH sparse binary Hamming similarity.
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": {
"query_code": "<query_code>"
},
"name": "query_associative_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Number of nearest neighbors to return. | |
| compact | No | Whether to return compact match objects to reduce prompt token footprint. | |
| query_code | Yes | The code query to search against associative memory (accepts 'query_code', 'query', or 'code'). |