Metis — Save Session Event
save_session_eventPersist atomic session events (turns, tool calls, file writes, redlines) to guarantee write-through logging after every action for reliable session tracking.
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 |
|---|---|---|---|
| content | Yes | ||
| event_type | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |