# Change a channel's settings or target

Tool: `veryfront__update_channel`

Update a channel binding. Requires project.channels.write.

## Arguments

| Name                        | Type                                            | Required | Description                                                                                                                                                                                                                                                               |
| --------------------------- | ----------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`         | string                                          |          | Project ID or slug                                                                                                                                                                                                                                                        |
| `channel_id`                | string · uuid                                   | Yes      | Channel ID from list\_channels                                                                                                                                                                                                                                            |
| `agent_id`                  | string · min length 1                           |          | Agent ID from listChannelAgents (MCP: list\_channel\_agents) for the same runtime target                                                                                                                                                                                  |
| `name`                      | string · min length 1 · max length 255          |          | Display name, 1-255 characters                                                                                                                                                                                                                                            |
| `respond_to`                | string                                          |          | Which Slack messages to answer: mentions, direct\_messages or all One of `mentions`, `direct_messages`, `all`.                                                                                                                                                            |
| `allowed_slack_channel_ids` | array of string · min length 1 · max length 255 |          | 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`           | string · max length 4000 \| null                |          | Welcome message; null clears                                                                                                                                                                                                                                              |
| `error_message`             | string · max length 4000 \| null                |          | Message shown when the agent fails; null clears                                                                                                                                                                                                                           |
| `max_response_tokens`       | integer · max 65536 \| null                     |          | Maximum response tokens, 1-65536; null clears                                                                                                                                                                                                                             |
| `runtime_target_kind`       | string                                          |          | Runtime target: main\_branch, environment or preview\_branch One of `main_branch`, `environment`, `preview_branch`.                                                                                                                                                       |
| `target_environment_id`     | string · uuid \| null                           |          | Environment ID; required when runtime\_target\_kind is environment                                                                                                                                                                                                        |
| `target_branch_id`          | string · uuid \| null                           |          | Branch ID; required when runtime\_target\_kind is preview\_branch                                                                                                                                                                                                         |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_channel",
    "arguments": {
      "channel_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"installation_id\":\"00000000-0000-0000-0000-000000000000\",\"platform\":\"slack\",\"name\":\"string\",\"agent_id\":\"string\",\"enabled\":false,\"platform_team_id\":\"string\",\"platform_bot_id\":\"string\",\"workspace_name\":\"string\",\"respond_to\":\"mentions\",\"allowed_slack_channel_ids\":[\"string\"],\"status\":\"connected\",\"welcome_message\":\"string\",\"error_message\":\"string\",\"max_response_tokens\":1,\"runtime_target_kind\":\"main_branch\",\"target_environment_id\":\"00000000-0000-0000-0000-000000000000\",\"target_branch_id\":\"00000000-0000-0000-0000-000000000000\",\"resolved_target\":{\"runtime_target\":{\"kind\":\"main_branch\",\"target_environment_id\":\"00000000-0000-0000-0000-000000000000\",\"target_branch_id\":\"00000000-0000-0000-0000-000000000000\"},\"resolved_environment\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\"},\"resolved_branch\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\"},\"resolved_deployment\":{\"id\":\"string\",\"runtime_version\":\"string\",\"deployment_revision\":\"string\",\"last_deployed_at\":\"string\"},\"resolved_managed_domain\":{\"domain\":\"string\",\"health_url\":\"string\"},\"resolved_invoke_mode\":\"dispatch_override\",\"last_resolution_error\":{\"code\":\"string\",\"retryable\":false,\"message\":\"string\"}},\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "installation_id": "00000000-0000-0000-0000-000000000000",
      "platform": "slack",
      "name": "string",
      "agent_id": "string",
      "enabled": false,
      "platform_team_id": "string",
      "platform_bot_id": "string",
      "workspace_name": "string",
      "respond_to": "mentions",
      "allowed_slack_channel_ids": [
        "string"
      ],
      "status": "connected",
      "welcome_message": "string",
      "error_message": "string",
      "max_response_tokens": 1,
      "runtime_target_kind": "main_branch",
      "target_environment_id": "00000000-0000-0000-0000-000000000000",
      "target_branch_id": "00000000-0000-0000-0000-000000000000",
      "resolved_target": {
        "runtime_target": {
          "kind": "main_branch",
          "target_environment_id": "00000000-0000-0000-0000-000000000000",
          "target_branch_id": "00000000-0000-0000-0000-000000000000"
        },
        "resolved_environment": {
          "id": "00000000-0000-0000-0000-000000000000",
          "name": "string"
        },
        "resolved_branch": {
          "id": "00000000-0000-0000-0000-000000000000",
          "name": "string"
        },
        "resolved_deployment": {
          "id": "string",
          "runtime_version": "string",
          "deployment_revision": "string",
          "last_deployed_at": "string"
        },
        "resolved_managed_domain": {
          "domain": "string",
          "health_url": "string"
        },
        "resolved_invoke_mode": "dispatch_override",
        "last_resolution_error": {
          "code": "string",
          "retryable": false,
          "message": "string"
        }
      },
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
