log_step
Log each workflow step to the active context, requiring a self-heal strategy on failure and warning when context grows too large.
Instructions
Appends to the Active Context. Rejects if failed=true but no self_heal_strategy is provided. Warns if context is too large.
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": {
"session_id": "<session_id>",
"action": "<action>",
"result": "<result>",
"failed": "<failed>"
},
"name": "log_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | A short description of what was just done | |
| failed | Yes | Set to true if this step encountered an error or failed to achieve its micro-goal. | |
| result | Yes | The output, success, or failure message of the action | |
| session_id | Yes | ||
| self_heal_strategy | No | MANDATORY if failed=true. How you plan to fix this failure or what alternative tool you will explore next. |