capture
Save decisions, learnings, and task outcomes to persistent memory for later recall. Preserve conversational context and share it with your team to prevent information loss.
Instructions
Save a decision, a learning, or a task outcome to memory. Call this tool after you complete a non-trivial task, make a decision, or fix a bug with a known root cause. You can capture a single text string, or a list of role-based conversation messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags. | |
| type | No | The type of the memory. Defaults to 'conversation' if omitted. | conversation |
| format | No | The response format. Use 'json' for structured data (e.g. benchmarks). Defaults to 'text'. | text |
| content | No | The text to remember. The tool redacts secrets before it stores the text. Use this for a single message. Use 'messages' instead for a multi-turn conversation. | |
| task_id | No | The task ID. Use this to isolate memory by a specific task. Link captures to a task for finer isolation. | |
| team_id | No | The team ID. Use this to isolate memory by team. When set, all queries filter by this value. | |
| user_id | No | The user ID. Use this to isolate memory by user within a team. When set with team_id, queries filter by both. | |
| agent_id | No | The agent ID. Use this to isolate memory by agent role within a team. Defaults to the detected agent. | |
| messages | No | A list of role-based conversation messages to capture. When set, 'content' is ignored. The tool flattens the messages into a single text for search, and stores the original messages for retrieval. | |
| metadata | No | Optional metadata. | |
| verified | No | Set this to true to mark the capture as verified. Verified captures rank higher in recall. | |
| supersedes | No | The ID of a capture that this one replaces. The old capture is marked as stale and ranks lower. | |
| session_key | No | The session key. The default is hash(cwd). | |
| override_rejection | No | Set this to true to force capture even if the content was previously rejected. Use this only when the rejection reason no longer applies. |