archive_task
Archives a task (or several — taskId accepts an array, up to 100): it leaves the lists and the card indicators, without being destroyed. It is the action that replaces a deletion. Archiving never cascades to subtasks: if it keeps LIVE ones, the response SAYS so via liveChildren + liveChildrenNote (the action still succeeds; subtasks are archived explicitly if that is intended). In BATCH form, each id is archived INDEPENDENTLY — an id not found never prevents the others from succeeding — and the response carries succeeded/failed instead of the flat fields of the single action. CLOSING LOCK: archiving a task is refused (UNACKNOWLEDGED_COMMENTS, nothing written) while a comment addressed to the agent on it, delivered to the calling key (or to the chat), is unacknowledged (acknowledgement goes through update_task or reply_comment); a comment delivered to a different key does not block and is reported in commentsHeldByOthers. There is no agent-side override: only a human can still close it from the site. In validation mode, a task that WAITS for a human ("to validate" / "to approve") is not archived by an agent: named refusal, nothing written.
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>"
},
"name": "archive_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ONE identifier, or UP TO 100 (array) — each one is archived INDEPENDENTLY: a refusal (locked block, task not found) on one does not prevent the others from succeeding. In batch form, the response carries `succeeded`/`failed` instead of the flat fields of the single action. | |
| claimToken | No | YOUR claim's token (from `claim_task`) — REQUIRED to write to a task a lease holds: without it `CLAIM_HELD`, a stale one `CLAIM_LOST`. A SECRET kept out of every written text. A write carrying it extends the lease without touching the declared progress; ending the task (`done`, archiving, back to `todo`) releases the claim. On a task nobody holds, the field stays empty. | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |