log_event
Record agent actions, tool calls, approvals, and outcomes in an append-only hash-chained log for audit and correction.
Instructions
Record one agent action in the logbook.
Who: agent_id (your agent's stable name) and model (e.g. "mistral-small-4"). What: action (the tool or operation) and arguments (secrets are masked). Why: reason — one plain sentence. Approval: "human" with approved_by, "auto" with approval_rule, or "none". Outcome: "pending" when logging before the action; log again with "success", "error" or "escalated" after it. Correction: if an earlier event was wrong, never try to change it; log a new event with corrects set to the earlier event's seq. Returns the stored record including its seq and hash.
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": {
"agent_id": "<agent_id>",
"model": "<model>",
"action": "<action>"
},
"name": "log_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| model | Yes | ||
| action | Yes | ||
| reason | No | ||
| run_id | No | ||
| outcome | No | pending | |
| agent_id | Yes | ||
| approval | No | none | |
| corrects | No | ||
| arguments | No | ||
| approved_by | No | ||
| approval_rule | No | ||
| result_summary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||