aiworkhub_manager_session_write
Append or edit audited session events to log starts, checkpoints, handoffs, and closes, or amend and redact existing records.
Instructions
MANAGER WRITE: append one audited canonical Session Manager event, or edit one existing event.
Append actions: start, event, checkpoint, state, handoff, close (no
document_id). Edit actions: amend rewrites the
content of one exact existing document (FTS rebuilt, audit row recorded,
context-graph mirror rewritten); redact deletes that document, its
FTS row and its graph mirror (audit keeps the fact of the redaction,
never the content). Both require document_id and leave the document
count/id audit trail truthful.
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>",
"topic": "<topic>",
"content": "<content>",
"idempotency_key": "<idempotency_key>",
"provenance": "<provenance>"
},
"name": "aiworkhub_manager_session_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Session topic the document belongs to, non-blank, at most 256 bytes. | |
| action | Yes | start, event, checkpoint, state, handoff or close appends a new document; amend rewrites one existing document and redact deletes it. | |
| content | Yes | Document text, non-blank, at most 32 KiB; optional for redact. | |
| provenance | Yes | Non-blank provenance text recorded in the audit row, at most 2048 bytes. | |
| document_id | No | Positive id of the existing document to amend or redact; required for those two actions and refused for the append actions. | |
| idempotency_key | Yes | 8-192 characters matching ^[A-Za-z0-9][A-Za-z0-9_.:-]{7,191}$; replaying a key returns the stored result instead of writing again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||