# archive\_task

Archive a task by `task_id` or `task_slug`, with the live agents on it.

writes · idempotent · MCP tool · [Task](https://komrad.dev/latest/api/task.md)

The task keeps its record, and its slug is never reused.

## Calling it

```bash
curl -X POST http://127.0.0.1:8787/komrad.task.v1.TaskService/ArchiveTask \
  -H 'Content-Type: application/json' \
  -d '{
  "task_id": "<task_id>"
}'
```

```bash
komrad rpc archive-task \
  --task-id '<uuid>'
```

```json
{
  "name": "archive_task",
  "arguments": {
    "task_id": "<task_id>"
  }
}
```

Offered by the komrad MCP server to writer, reviewer, orchestrator agents.

## Request

### ArchiveTaskRequest

| Field | Type | Description |
| --- | --- | --- |
| [one of](https://komrad.dev/latest/api/task/archive-task.md#komrad-task-v1-ArchiveTaskRequest-task)\* |  | The task to archive. |
| [`task_id`](https://komrad.dev/latest/api/task/archive-task.md#komrad-task-v1-ArchiveTaskRequest-task_id) | uuid | The task, by id. |
| [`task_slug`](https://komrad.dev/latest/api/task/archive-task.md#komrad-task-v1-ArchiveTaskRequest-task_slug) | string not empty | The task, by slug. |

## Response

### Empty

No fields.
