smart_memory
Purpose: Team-scoped long-term memory (add, search, get, delete). When to use: Persist or retrieve facts for this team/user across sessions. When NOT to use: World knowledge, one-off page content (use fetch/search), or global encyclopedic answers. Returns: JSON string; shape depends on action. Composes with: smart_search for grounding; smart_pipe template remember.
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": "smart_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Content when action=add. | |
| query | No | Search query when action=search. | |
| top_k | No | Max results for search. | |
| action | Yes | One of: add, search, get, delete (team-scoped memory). | |
| user_id | No | User scope for memory operations. | |
| messages | No | Optional messages payload for add. | |
| metadata | No | Optional metadata for add. | |
| memory_id | No | Memory id for get/delete. | |
| threshold | No | Similarity threshold for search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |