# todo_write

Canonical URL: https://developers.iagenify.com/sdk/agent/tools/todo-write/
Language: en

`todo_write({ todos: [{ content, status }] })`

The agent's plan. The whole list is sent each time, and a todo event carries it to your interface.

Status: category: read · free · five steps or more

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `todos` | array | required | Each item `{ content, status }`. |
| `status` | string |  | `pending` · `in_progress` · `completed`. Anything else becomes `pending`. |

## The whole list, every time {#whole}

There is no « add one step » or « mark this done » — the agent sends the list as it now stands, and the [todo](/sdk/agent/events/todo) event carries it. Treat it as a replacement.

## When a plan is written at all {#when}

> **Five steps is the threshold**
>
> Below that the agent is told to just do the work: a two-line list costs a turn and helps no one. So a short task legitimately produces no plan.

## One in progress {#convention}

The agent keeps exactly one item `in_progress` and marks items `completed` as it goes — which gives an interface a reliable « current step ».

## It outlives the run {#after}

The final list is on `result.todos` and on the `done` event, and it is kept in a session — so a plan made in [plan mode](/sdk/agent/modes/plan) is still there when you switch mode and continue.

- [todo](/sdk/agent/events/todo): The event.
- [plan](/sdk/agent/modes/plan): The mode whose output this is.
- [Agent tools](/sdk/agent/tools): The 35, by family.
