ctx_save
Persist work-relevant knowledge—notes, feedback, incidents, lessons, or user profiles—so your agent can retrieve it across sessions. Saves a new context entry with lifecycle and validity flags.
Instructions
Save a new context entry (reference doc, feedback, project note, incident report, lesson learned, or user profile). Use this when you want to persist knowledge for future retrieval. Optional lifecycle/valid_from/valid_to flag the note's maturity and bi-temporal validity. Response includes atomic, quality_score, and lifecycle once the backend judge has run. Trigger: user asks you to remember/save something ("nhớ cái này", "lưu lại", "ghi nhớ giúp", "remember this", "save this", "note this down") — call whenever work-relevant info should persist across sessions. Only call when the request is actually about tracked work/memory; ignore unrelated casual chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short, descriptive title | |
| tags | No | Tags for categorization and filtering | |
| type | Yes | Category of the context entry | |
| scope | No | Visibility scope (defaults to personal) | |
| content | Yes | Full content / body of the context entry | |
| project | No | Optional project identifier within the workspace | |
| metadata | No | Arbitrary key-value metadata | |
| valid_to | No | Bi-temporal: ISO 8601 timestamp when the fact stopped being true. Optional; null means still valid. | |
| lifecycle | No | Lifecycle state of the note. Omit to let the backend default to 'working'. Use 'fleeting' for transient captures, 'evergreen' for durable knowledge, 'archived' to retire from active surfacing. | |
| workspace | Yes | Workspace identifier that owns this context | |
| memoryKind | No | Taxonomy override: 'episodic' (an event/interaction happened), 'semantic' (durable factual/reference knowledge), or 'procedural' (how-to / lesson that changes future behavior). Omit to let the backend classify it from the context type (a cheap heuristic, optionally refined by the atomicity judge). | |
| valid_from | No | Bi-temporal: ISO 8601 timestamp when the fact this context describes started being true. Optional. | |
| description | Yes | One-line summary used for search ranking |