session_save_experience
Capture structured behavioral events like corrections, successes, and failures to enable pattern detection and performance analysis.
Instructions
Record a typed experience event. Unlike session_save_ledger (flat logs), this captures structured behavioral data for pattern detection.
Event Types:
correction: Agent was corrected by user
success: Task completed successfully
failure: Task failed
learning: New knowledge acquired
validation_result: Verification sandbox passed or failed
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": {
"project": "<project>",
"event_type": "<event_type>",
"context": "<context>",
"action": "<action>",
"outcome": "<outcome>"
},
"name": "session_save_experience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Optional. Agent role for Hivemind scoping. Omit to let the server auto-resolve from dashboard settings. | |
| action | Yes | What action was tried. | |
| context | Yes | What the agent was doing when the event occurred. | |
| outcome | Yes | What happened as a result. | |
| project | Yes | Project identifier. | |
| correction | No | What should have been done instead (for correction type). | |
| event_type | Yes | Type of behavioral event. | |
| confidence_score | No | Agent's confidence in the outcome (1-100). |