save_session_event
Record an atomic event to a session log with write-through guarantee. Use after every tool call, file write, or classification decision to persist event details.
Instructions
Stage 8: Persist one atomic event to session_events (write-through guarantee).
Call this after every tool call, file write, and classification decision.
Event types: 'turn' | 'tool_call' | 'result' | 'file_write' | 'redline' | 'classification'
Args:
session_id: Session ID from session_bootstrap().
event_type: Category of event being recorded.
content: Event content (truncated to 2000 chars).
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": {
"session_id": "<session_id>",
"event_type": "<event_type>",
"content": "<content>"
},
"name": "save_session_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| event_type | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |