# `T3.Tasks`
[🔗](https://github.com/dl-alexandre/t3-elixir/blob/main/lib/t3/tasks.ex#L1)

Delegated-task and background-work operations.

Most require a T3-launched agent/thread context; an external OAuth sign-in may
not advertise these tools. Use `T3.Catalog.discover/1` to check actual availability.

# `background_wait`

```elixir
@spec background_wait(T3.Client.t(), map()) :: {:ok, map()} | {:error, T3.Error.t()}
```

Keep this thread in Working while background work runs. Pass its task ID after starting it. Not for work left running (dev server, watcher). `waiting=false` clears. Does not stop the task. Claude only.

Some operations require a T3-launched agent/thread context. The server enforces tool visibility and permissions.

# `cancel`

# `cancel`

# `capabilities`

# `delegate`

# `delegate`

# `status`

# `stop_workflow`

```elixir
@spec stop_workflow(T3.Client.t(), map()) :: {:ok, map()} | {:error, T3.Error.t()}
```

Stop a running Claude workflow in a thread. `subagentId`: coordinator from `t3_thread_read` 'activity'. Stops only the workflow, not the thread.

Some operations require a T3-launched agent/thread context. The server enforces tool visibility and permissions.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
