Change a channel's settings or target

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

Arguments

  • project_referencestring

    Project ID or slug

  • channel_idstring · uuidrequired

    Channel ID from list_channels

  • agent_idstring · min length 1

    Agent ID from listChannelAgents (MCP: list_channel_agents) for the same runtime target

  • namestring · min length 1 · max length 255

    Display name, 1-255 characters

  • respond_tostring

    Which Slack messages to answer: mentions, direct_messages or all One of mentions, direct_messages, all.

  • allowed_slack_channel_idsarray 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_messagestring · max length 4000 | null

    Welcome message; null clears

  • error_messagestring · max length 4000 | null

    Message shown when the agent fails; null clears

  • max_response_tokensinteger · max 65536 | null

    Maximum response tokens, 1-65536; null clears

  • runtime_target_kindstring

    Runtime target: main_branch, environment or preview_branch One of main_branch, environment, preview_branch.

  • target_environment_idstring · uuid | null

    Environment ID; required when runtime_target_kind is environment

  • target_branch_idstring · uuid | null

    Branch ID; required when runtime_target_kind is preview_branch

Responses

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"    }  }}'
{  "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"    }  }}

The tool ran; its output is result.structuredContent.