# `max playbooks`

Manage your Max playbooks on the Public API (/public/v1/max/playbooks/...). Chat (workflows/SOPs) and Auto-Drafting (email) instruction sets for your own Max agent.

```bash
max playbooks [options] [command]
```

## `max playbooks list`

GET /public/v1/max/playbooks — list your Max playbooks

```bash
max playbooks list [options]
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--type <type>` | Filter by type (MAIN_AGENT or AUTO_DRAFTING) |  |
| `--visibility <visibility>` | Filter by visibility (ACCOUNT or PRIVATE) |  |
| `--filter-text <text>` | Filter by name, description, or instructions |  |
| `--is-active <bool>` | Filter by active status (true or false) |  |
| `--page <n>` | Page number |  |
| `--page-size <n>` | Page size |  |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max playbooks get`

GET /public/v1/max/playbooks/:playbookId — get a Max playbook

```bash
max playbooks get [options] <playbookId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max playbooks create`

POST /public/v1/max/playbooks — create a Max playbook

```bash
max playbooks create [options]
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--name <name>` | Playbook name |  |
| `--type <type>` | Playbook type: MAIN_AGENT (a chat playbook, as the app calls it) or AUTO_DRAFTING |  |
| `--instructions <instructions>` | Playbook instructions (min 10 chars) |  |
| `--description <description>` | When to use this playbook |  |
| `--tools <json>` | JSON array of system tool names |  |
| `--visibility <visibility>` | ACCOUNT or PRIVATE (default PRIVATE) |  |
| `--no-assign` | Do not auto-assign to your Max agent (default: assign) |  |
| `--inactive` | Create the playbook inactive (default: active) |  |
| `--integrations <json>` | JSON array of integration toolkits |  |
| `--selected-record-types <json>` | JSON array of record-type tool settings |  |
| `--selected-custom-tools <json>` | JSON array of custom-tool settings |  |
| `--connected-account-ids <json>` | AUTO_DRAFTING only: JSON array of connected email account IDs to scope this playbook to (implies --applies-to-all-accounts false) |  |
| `--applies-to-all-accounts <bool>` | true|false — set false to scope to --connected-account-ids (default true) |  |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max playbooks update`

PATCH /public/v1/max/playbooks/:playbookId — update a Max playbook

```bash
max playbooks update [options] <playbookId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--name <name>` | Playbook name |  |
| `--description <description>` | When to use this playbook |  |
| `--instructions <instructions>` | Playbook instructions (min 10 chars) |  |
| `--tools <json>` | JSON array of system tool names |  |
| `--visibility <visibility>` | ACCOUNT or PRIVATE |  |
| `--active` | Mark the playbook active |  |
| `--inactive` | Mark the playbook inactive |  |
| `--integrations <json>` | JSON array of integration toolkits |  |
| `--selected-record-types <json>` | JSON array of record-type tool settings |  |
| `--selected-custom-tools <json>` | JSON array of custom-tool settings |  |
| `--connected-account-ids <json>` | AUTO_DRAFTING only: JSON array of connected email account IDs to scope this playbook to (implies --applies-to-all-accounts false) |  |
| `--applies-to-all-accounts <bool>` | true|false — set true to clear email scoping and apply to all accounts |  |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max playbooks delete`

DELETE /public/v1/max/playbooks/:playbookId — delete a Max playbook

```bash
max playbooks delete [options] <playbookId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max playbooks assign`

POST /public/v1/max/playbooks/:playbookId/assignment — assign a playbook to your Max agent

```bash
max playbooks assign [options] <playbookId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |


## `max playbooks unassign`

POST /public/v1/max/playbooks/:playbookId/assignment — unassign a playbook from your Max agent

```bash
max playbooks unassign [options] <playbookId>
```

**Options**

| Flag | Description | Default |
|  --- | --- | --- |
| `--profile <name>` | Max profile: uses the per-user API key and Public API base URL from the Frontline CLI profile of the same name (`max config-path` shows the Max-only store). |  |
| `--base-url <url>` | Advanced: override Public API base URL for this run |  |
| `--api-base-url <url>` | Deprecated alias for --base-url |  |
| `--api-key <key>` | Override per-user API key for this run |  |
| `--pretty` | Print assistant-style text when detectable; otherwise full JSON |  |
| `--debug` | Show debug information |  |