> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://platform.bctrl.ai/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://platform.bctrl.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://platform.bctrl.ai/_mcp/server.

# tasks Commands

> Manage tasks

Manage tasks

Output formatting flags (`--json`, `--jq`, and `--template`) are documented once in [Output Formatting](/cli/output) and are omitted from the tables below.

## `bctrl tasks cancel`

Cancel the Task and revoke its delegated credential. Its Conversation remains busy until native cleanup is acknowledged.

```bash
bctrl tasks cancel <taskId> [flags]
```

| Flag                      | Description                                        |
| ------------------------- | -------------------------------------------------- |
| `--headers <json>`        | API headers: inline JSON, @file, or - for stdin    |
| `--api-version <date>`    | Dated API contract (default: 2026-10-03)           |
| `--space <id-or-name>`    | Select an authorized Space (BCTRL-Space)           |
| `--subaccount-id <id>`    | Effective subaccount context (BCTRL-Subaccount-Id) |
| `--idempotency-key <key>` | Retry key for this operation                       |
| `--body <json>`           | Request body: inline JSON, @file, or - for stdin   |

## `bctrl tasks create`

Run an Agent on the input in a new or existing idle Conversation. The Task starts queued; read or wait on it with GET /v1/tasks/\{taskId}.

```bash
bctrl tasks create [flags]
```

| Flag                      | Description                                        |
| ------------------------- | -------------------------------------------------- |
| `--headers <json>`        | API headers: inline JSON, @file, or - for stdin    |
| `--api-version <date>`    | Dated API contract (default: 2026-10-03)           |
| `--space <id-or-name>`    | Select an authorized Space (BCTRL-Space)           |
| `--subaccount-id <id>`    | Effective subaccount context (BCTRL-Subaccount-Id) |
| `--idempotency-key <key>` | Retry key for this operation                       |
| `--body <json>`           | Request body: inline JSON, @file, or - for stdin   |

## `bctrl tasks get`

Read Task status, structured output, artifacts, input request, Browser Runs and usage. Wait ends when the Task finishes or requests input.

```bash
bctrl tasks get <taskId> [flags]
```

| Flag                   | Description                                        |
| ---------------------- | -------------------------------------------------- |
| `--query <json>`       | Query object: inline JSON, @file, or - for stdin   |
| `--params <json>`      | Alias for --query                                  |
| `--wait <value>`       | Query parameter wait                               |
| `--headers <json>`     | API headers: inline JSON, @file, or - for stdin    |
| `--api-version <date>` | Dated API contract (default: 2026-10-03)           |
| `--space <id-or-name>` | Select an authorized Space (BCTRL-Space)           |
| `--subaccount-id <id>` | Effective subaccount context (BCTRL-Subaccount-Id) |

## `bctrl tasks input`

Answer its current input request by requestId, or steer a running Task. Approval applies only its immutable stored proposal.

```bash
bctrl tasks input <taskId> [flags]
```

| Flag                      | Description                                        |
| ------------------------- | -------------------------------------------------- |
| `--headers <json>`        | API headers: inline JSON, @file, or - for stdin    |
| `--api-version <date>`    | Dated API contract (default: 2026-10-03)           |
| `--space <id-or-name>`    | Select an authorized Space (BCTRL-Space)           |
| `--subaccount-id <id>`    | Effective subaccount context (BCTRL-Subaccount-Id) |
| `--idempotency-key <key>` | Retry key for this operation                       |
| `--body <json>`           | Request body: inline JSON, @file, or - for stdin   |

## `bctrl tasks list`

List Tasks by Agent, Conversation, status and time in the selected tenant or Space.

```bash
bctrl tasks list [flags]
```

| Flag                     | Description                                        |
| ------------------------ | -------------------------------------------------- |
| `--query <json>`         | Query object: inline JSON, @file, or - for stdin   |
| `--params <json>`        | Alias for --query                                  |
| `--cursor <value>`       | Query parameter cursor                             |
| `--order <value>`        | Query parameter order                              |
| `--limit <value>`        | Query parameter limit                              |
| `--agent <value>`        | Query parameter agent                              |
| `--conversation <value>` | Query parameter conversation                       |
| `--status <value>`       | Query parameter status                             |
| `--from <value>`         | Query parameter from                               |
| `--to <value>`           | Query parameter to                                 |
| `--headers <json>`       | API headers: inline JSON, @file, or - for stdin    |
| `--api-version <date>`   | Dated API contract (default: 2026-10-03)           |
| `--space <id-or-name>`   | Select an authorized Space (BCTRL-Space)           |
| `--subaccount-id <id>`   | Effective subaccount context (BCTRL-Subaccount-Id) |