Cancel or Delete Task
meshy_cancel_taskCancel a pending task to stop it and refund eligible credits, or permanently delete a finished task after user confirmation when allowed.
Instructions
Cancel a queued task, or delete a finished one. What happens depends on the task:
Creative Lab tasks (task_type "creative-lab-..."):
PENDING → canceled, credits refunded
IN_PROGRESS → canceled, credits NOT refunded
SUCCEEDED / FAILED / CANCELED → cannot be canceled or deleted, even with confirm_delete
Every other task:
PENDING → deleted, credits refunded
IN_PROGRESS → refused: the task keeps running and its credits are not refundable. Wait until it finishes
SUCCEEDED / FAILED / CANCELED → PERMANENTLY deleted with its files, no refund. Requires confirm_delete: true — ask the user first
Returns { success, task_id, task_type, previous_status, message }.
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": {
"task_id": "<task_id>"
},
"name": "meshy_cancel_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID | |
| task_type | No | Optional: if omitted or wrong, the server finds the task and reports its real type. | |
| confirm_delete | No | true to permanently delete a finished task, only after the user agreed. |