# veryfront__create_channel

Connect a Slack agent. Requires project.channels.write.

Risk: mutating.

## Arguments

| Name                        | Type   | Required | Description                                                                                                                                                                                                                                                               |
| --------------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`         | string |          | Project ID or slug. Requires a person's credential; agent, run, and service-account callers are forbidden.                                                                                                                                                                |
| `platform`                  | string | Yes      | Messaging platform: slack                                                                                                                                                                                                                                                 |
| `agent_id`                  | string | Yes      | Agent ID from listChannelAgents (MCP: list\_channel\_agents) for the same runtime target                                                                                                                                                                                  |
| `name`                      | string |          | Display name, 1-255 characters                                                                                                                                                                                                                                            |
| `respond_to`                | string |          | Which Slack messages to answer: mentions, direct\_messages or all                                                                                                                                                                                                         |
| `allowed_slack_channel_ids` | array  |          | Slack channel IDs. Overlap with another channel in the same workspace is rejected with resource-already-exists. IDs come from listSlackChannels (MCP: list\_slack\_channels); empty means every Slack channel the bot is in. A preview\_branch target needs at least one. |
| `welcome_message`           |        |          | Welcome message; null clears                                                                                                                                                                                                                                              |
| `error_message`             |        |          | Message shown when the agent fails; null clears                                                                                                                                                                                                                           |
| `max_response_tokens`       |        |          | Maximum response tokens, 1-65536; null clears                                                                                                                                                                                                                             |
| `runtime_target_kind`       | string |          | Runtime target: main\_branch, environment or preview\_branch                                                                                                                                                                                                              |
| `target_environment_id`     |        |          | Environment ID; required when runtime\_target\_kind is environment                                                                                                                                                                                                        |
| `target_branch_id`          |        |          | Branch ID; required when runtime\_target\_kind is preview\_branch                                                                                                                                                                                                         |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_channel",
    "arguments": {
      "platform": "<platform>",
      "agent_id": "<agent_id>"
    }
  }
}
```
