report_error
Publish a work failure as an error event to a task's project so the team sees it via get_context, and optionally flag your agent status as error when you cannot continue.
Instructions
Report a failure you hit while working, so the team sees it instead of it staying in your log. With task_id, publishes an error event (tagged error and the severity, kept 72h) to that task's project, where get_context shows it. With recoverable=false it also sets your agent status to error in the team directory. It does not move the task or comment on it: use add_comment for that.
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": {
"error_message": "<error_message>"
},
"name": "report_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | No | UUID of the task the error belongs to. Without it nothing is published to a project; only the agent status changes (and only when recoverable=false). | |
| severity | No | Severity: low, medium (default), high or critical. Also added as an event tag. | medium |
| recoverable | No | Default true. Pass false when you cannot continue: your agent status is then set to error. | |
| stack_trace | No | Optional stack trace, command output or other detail, stored in the event payload. | |
| error_message | Yes | What went wrong, in a sentence or two. Required and non-empty; its first 100 characters become the event subject. |