mem_write
Create a new memory record (note, rule, or pointer) as unapproved agent data. It stays untrusted until the owner approves it; near-duplicates are refused.
Instructions
Create a new memory (a note, a rule, a pointer). WRITES: inserts one record marked origin='agent' and UNAPPROVED — it reaches other agents as data until the owner runs skillmem trust <slug> at a terminal; there is no tool to approve. slug must be new: an existing slug with different text is refused (use mem_update with a reason); byte-identical text is returned unchanged and keeps its approval. check_conflicts (default true) refuses a near-duplicate and names the overlapping records — pass false only deliberately. ttl_days sets an expiry; on an existing record a field sent as null clears it. Returns ok, slug and id. Use mem_learn for a procedure learned by doing; mem_update to change text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| kind | No | note | |
| slug | Yes | ||
| tags | No | ||
| title | Yes | ||
| topics | No | ||
| project | No | ||
| ttl_days | No | ||
| check_conflicts | No | Reject if word overlap (shared words / smaller set) > 0.7 with an existing memory. |