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.
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 |