task_fail
Mark your claimed task as failed when you cannot complete it, providing a reason to unblock other agents.
Instructions
DEPRECATED: the harness owns this now, Claude Code discovers peers and manages its own task list. Still works; not where new work should go.
Mark your claimed task as failed. Use when you cannot complete it.
Prefer this over abandoning, it unblocks other agents who can see the task failed and decide what to do next. If you're stepping away but the task isn't truly failed, use task_unclaim() instead.
Args: task_id: ID of a task you have claimed. body: Optional reason recorded on the task's comment log. Strongly recommended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional reason recorded on the task's comment log. Strongly recommended. | |
| task_id | Yes | ID of a task you have claimed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |