memory_event
Alpha, on the 3.6.x line. The API can still change within 3.x.
Records that something happened. An event is immutable: once created it cannot be edited or archived, only annotated.
Actions
action | Needs | What it does |
|---|---|---|
create | type, name, description, occurredAt, source | Appends a new event. |
get | id | Returns one event. |
list | Lists events. Filters: type, sourceFilter, after, before, limit. | |
annotate | id, author, content | Adds an append-only annotation to the event. |
sensitivity | id, sensitivity | Raises the sensitivity tier. Lowering it returns 422. |
archive | id | Does nothing: the log is immutable. |
Arguments
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
action | string | yes | One of the six actions above. | |
id | string | per action | Event id. | |
type | string | per action | system, external, user, agent or scheduled. Also a filter in list. | |
name | string | per action | 1 to 500 characters. | |
description | string | per action | Up to 20,000 characters. | |
occurredAt | string | per action | When it happened. ISO 8601 UTC instant. | |
source | string | per action | Where the event came from. 1 to 200 characters. | |
durationS | integer | no | Duration in seconds. For create. | |
relatedEntities | string[] | no | Ids of the entities involved. For create. | |
metadata | object | no | For create. | |
sensitivity | string | per action | internal | Initial tier in create, new tier in sensitivity. |
author | string | per action | For annotate. 1 to 200 characters. | |
content | string | per action | Text of the annotation. 1 to 20,000 characters. | |
at | string | no | Timestamp of the annotation. | |
sourceFilter | string | no | For list: only events from this source. | |
after | string | no | For list: only events after this instant. | |
before | string | no | For list: only events before this instant. | |
limit | integer | no | For list. 1 to 500. | |
idempotencyKey | string | no | For create. Prevents a duplicate event on a retry. | |
targetWorkspaceId | string | no | For create. UUID of another workspace where you have write access. |
Example
{
"name": "memory_event",
"arguments": {
"action": "create",
"type": "external",
"name": "firmware.release",
"description": "Firmware 4.2 shipped to the Larkspur warehouse fleet.",
"occurredAt": "2026-11-13T16:00:00Z",
"source": "release-pipeline"
}
}Returns
create, get, annotate and sensitivity return the event record:
id, workspaceId, type, name, description, occurredAt,
source, relatedEntities, annotations, sensitivity, createdAt
and metadata. archive returns
{ "id", "archived": false, "immutable": true }.
Events are indexed but not returned by a default recall. Pass
kinds: ["event"] to memory_recall to include them.
Related
- Tasks and events, the concept
- REST:
POST /events,GET /events/{id},POST /events/{id}/annotations