log_trace
Log a granular agent action trace. High-frequency, no LLM processing.
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": {
"trace_type": "<trace_type>",
"summary": "<summary>"
},
"name": "log_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Status: started, completed, failed (default: completed) | |
| summary | Yes | Short description of the action | |
| task_id | No | Task ID to link this trace to (optional — auto-links session to task) | |
| metadata | No | Free-form JSON metadata (optional) | |
| trace_id | No | Logical trace group ID (auto-generated if omitted) | |
| project_id | No | Project ID (optional, alternative to project_name) | |
| session_id | No | Session ID (optional — auto-resolved from project if omitted) | |
| trace_type | Yes | Trace type: tool_call, file_read, file_write, code_search, code_edit, api_call, thinking, error | |
| duration_ms | No | Duration in milliseconds (optional) | |
| project_name | No | Project name (optional, used for auto-session resolution) | |
| parent_trace_id | No | Parent trace ID for nesting (e.g. tool_call -> file_reads) |