log_action
Stores one declared action for a pseudonymous agent_key and returns a receipt. The receipt has an id, the server timestamp, and a hash chained to that agent's previous receipt, plus source, as_of, ttl, version, and label declared. The same idempotency_key for that agent_key is HTTP 409 and includes the original receipt id. target_url is a public https URL. A field that contains a credential is rejected. No network address is stored.
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": {
"what": "<what>",
"target_url": "<target_url>",
"expected_result": "<expected_result>",
"idempotency_key": "<idempotency_key>",
"agent_key": "<agent_key>"
},
"name": "log_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| what | Yes | Short text of the declared action. | |
| agent_key | Yes | Pseudonymous key for this log. Not a credential. | |
| target_url | Yes | Public https URL stored on the receipt. | |
| expected_result | Yes | sha256: and 64 lowercase hex digits, or exact: and 16 to 200 characters, or json: a dotted path, an equals sign, and a JSON string, boolean, or number. | |
| idempotency_key | Yes | Caller-chosen id. One value for one agent_key refers to one receipt. |