record_tool_call
Record a tool call by creating a signed RGE envelope with input and output hashes, appending it to the trace's audit chain to enable tamper-evident audit and verification.
Instructions
Capability 4 + 7: record a tool call (input + output hashes) as a signed RGE v0.2 envelope with the mcp_tool_audit block populated. Appends to the trace's audit chain and returns the new envelope's integrity hash. The envelope is persisted under ~/.phionyx/mcp_audit//.json by default (configurable via PHIONYX_MCP_AUDIT_ROOT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turn_index | Yes | ||
| user_text | Yes | ||
| producer | Yes | ||
| trace_id | No | ||
| tool_descriptor_hash | No | ||
| descriptor_change_detected | No | ||
| tool_permission_scope | No | ||
| input_hash | No | ||
| output_hash | No | ||
| approval_state | No | ||
| anomaly_flag | No | ||
| decision | No | release | |
| decision_reason | No | no policy violation | |
| runtime_policy_basis | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||