Record an agent action
ledger_record_actionAppend an action to the organization's tamper-evident log. Returns the entry with its entry_hash receipt. Requires the organization API key.
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": {
"stream_id": "<stream_id>",
"actor": "<actor>",
"action_type": "<action_type>",
"summary": "<summary>"
},
"name": "ledger_record_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | Who acted: agent name, model, or user on whose behalf | |
| details | No | Optional structured details (JSON object, under 16 KB) | |
| outcome | No | One of: success, failure, pending, blocked | success |
| summary | Yes | One-line description of what was done | |
| resource | No | What was acted on: URL, file, record ID, account | |
| stream_id | Yes | Stream to append to, usually the agent's name, e.g. 'billing-agent' | |
| action_type | Yes | One of: tool_call, data_access, data_change, payment, message, decision, approval, error, other |