# archive\_workflow

Archive a workflow with its agents.

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

Fails while a schedule still launches agents into the workflow.

## Calling it

```bash
curl -X POST http://127.0.0.1:8787/komrad.workflow.v1.WorkflowService/ArchiveWorkflow \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "<id>"
}'
```

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

```json
{
  "name": "archive_workflow",
  "arguments": {
    "id": "<id>"
  }
}
```

Offered by the komrad MCP server to orchestrator agents.

## Request

### ArchiveWorkflowRequest

| Field | Type | Description |
| --- | --- | --- |
| [`id`](https://komrad.dev/latest/api/workflow/archive-workflow.md#komrad-workflow-v1-ArchiveWorkflowRequest-id) | uuid\* | The workflow to archive, by id. |

## Response

### Empty

No fields.
