# task

Canonical URL: https://developers.iagenify.com/sdk/agent/tools/task/
Language: en

`task({ agent, description, prompt })`

Hand a self-contained job to a subagent with a fresh context. Several in one turn run in parallel, and you get back only the report.

Status: category: task · free to call · parallel in one turn

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `agent` | string | required | Which subagent — the declaration lists what is available. |
| `description` | string | required | Three to six words, shown to the user: « Read the tax form ». |
| `prompt` | string | required | The whole job. **It sees nothing of this conversation.** |

## A fresh context is the point {#fresh}

> **Write a complete prompt**
>
> The subagent gets the prompt and nothing else — not the conversation, not what was read, not what was decided. The tool's own description says so: name the goal, the paths, and exactly what to report.

## When the agent is told to use it {#when}

- Several independent things to investigate or produce — several `task` calls in the same turn, running in parallel.
- A job that would fill its context with material it will not need afterwards.
- Not for one or two quick reads: those it does itself.

## What a subagent gets {#inherits}

| Inherited | Not |
| --- | --- |
| The mode and the permission callback | The conversation |
| The budget, shared | `ask_user`, `todo_write`, `memory` |
| The machine and the workspace | A step ceiling above 40 |
| Its own tools and model, from its file | Subagents of its own |

## What comes back {#report}

Its final message, plus a line of figures — turns, tool calls, credits, and why it stopped. Its events reach your `onEvent` carrying `parentId` as they happen.

## Calling it is free; what it does is not {#free}

The category is `task`, always allowed — because every tool the subagent then calls goes through the same permission callback, with the arguments in hand.

- [Parallelism](/sdk/agent/parallelism): Why several at once matters.
- [task](/sdk/agent/permissions/categories/task): The category.
- [Agent tools](/sdk/agent/tools): The 35, by family.
