task_fail
Mark a task as failed and emit a task.failed event so orchestration systems can record errors, categorize codes, and flag recoverability.
Instructions
Mark a task as failed and emit task.failed event
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": {
"taskId": "<taskId>",
"error": "<error>"
},
"name": "task_fail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | Error message describing the failure | |
| taskId | Yes | ID of the task that failed | |
| errorCode | No | Error code for categorization | |
| recoverable | No | Whether the error is recoverable |