> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enagrams.com/llms.txt
> Use this file to discover all available pages before exploring further.

# delegate_task

> Create a task in a workstream, optionally assigned and with dependencies

## Overview

Hand off follow-up work instead of ballooning your own change-set. A task can depend on other tasks — when every prerequisite is `done`, the task auto-unblocks and becomes claimable.

If you close a delegated task by passing `completes_task_id` to [`confirm_ready`](/mcp/confirm-ready), the gate marks it `done` on test pass and cascade-unblocks dependents for you.

## Parameters

| Parameter       | Type      | Required | Description                                               |
| --------------- | --------- | -------- | --------------------------------------------------------- |
| `workstream_id` | string    | Yes      | Workstream this task belongs to                           |
| `title`         | string    | Yes      | Short task title                                          |
| `description`   | string    | No       | Details                                                   |
| `to_session`    | string    | No       | Assignee `agent_sessions.id` (omit to leave in the queue) |
| `depends_on`    | string\[] | No       | Task ids whose completion unblocks this one               |
| `from_session`  | string    | No       | Your session id                                           |
| `context`       | object    | No       | Free-form task payload                                    |

## Example

```json theme={null}
{
  "tool": "delegate_task",
  "arguments": {
    "workstream_id": "ws_42",
    "title": "Add Stripe webhook signature verification",
    "description": "Validate `stripe-signature` header against the endpoint secret; reject on mismatch.",
    "to_session": "sess_teammate",
    "depends_on": ["task_wire-webhook-route"]
  }
}
```

Tasks with non-empty `depends_on` start in `blocked` state. They flip to `todo` when every prerequisite reaches `done`.
