Cancel TraeCN Task
traecn_cancel_taskCancel a tracked task by ID to stop gateway processing at the next control point, while preserving already produced results. Returns the task's post-cancellation status.
Instructions
Cancel one gateway-tracked task by ID. The gateway stops shepherding the work at its next control point and records the cancellation; results already produced remain in task history. Returns the task identity and post-cancellation status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Stable task identifier returned by traecn_send_message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Stable machine-readable result or error code. | |
| error | No | Error identifier or diagnostic when the operation failed. | |
| status | No | Stable operation or task status. | |
| taskId | No | Echoed task identifier. | |
| changed | No | Whether visible TraeCN state changed. | |
| message | No | Human-readable outcome summary. | |
| success | No | Whether the operation succeeded. | |
| retryable | No | Whether retrying the same call can succeed later. | |
| nextAction | No | Suggested next step after a failure. | |
| stopResult | No | Outcome of stopping visible generation when the task was mid-flight. | |
| conversationId | No | Stable TraeCN conversation identifier. |