trace_step
Record each significant action during a traced workflow by adding a step with input and output data to an execution trace for debugging.
Instructions
Add a step to an execution trace.
Record each significant action during a traced workflow. Include input and output data to make the trace useful for debugging.
Args: trace_id: ID of the active trace. step_name: Name of this step (e.g. "search-memories", "call-api"). input_data: Optional JSON string with step input. output_data: Optional JSON string with step output.
Returns: JSON string with step_id and status.
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_id": "<trace_id>",
"step_name": "<step_name>"
},
"name": "trace_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | ||
| output | No | ||
| content | No | ||
| metadata | No | ||
| trace_id | Yes | ||
| step_name | Yes | ||
| input_data | No | ||
| output_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |