Голос · Агенты · Установка значения · Подключения
voice_agent_set_connection
Попробуйте три запроса
- Вы указываетеAgentid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Голос / Агенты / Установка значения / Подключения». Для изменения нужны agentId, изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
- agentId
- Параметр
- values
- Изменяемые поля
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Голос / Агенты / Установка значения / Подключения» с параметром values.enabled = true. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- values.enabled
- true
- agentId
- DEMO-101
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Голос / Агенты / Установка значения / Подключения» по исходному ответу. Покажи agentId, включение. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Change the voice, verified source telephone, or enabled state of any existing company voice agent through MCP, including native cabinet and MCP-created agents. Read voice_agent_get_configuration or voice_agent_get for expectedRevision. Omitted settings are preserved; no recreation or prior activation receipt is required. Voice/telephone changes are checked against the company provider before saving. Disabling needs no provider availability. Does not call anyone or buy a number; future calls use the saved settings. Recover uncertain writes with voice_agent_get_connection_result and identical arguments.
Параметры запроса
- agentId
- Existing company voice agent document ID. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- values
- Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- agentId
- Existing company voice agent document ID. обязательно по схеме · string
- enabled
- Saved enabled state. обязательно по схеме · boolean
- voiceId
- Current voice ID, or null when unconfigured. обязательно по схеме · string / null
- fromNumber
- Current source telephone, or null when unconfigured. обязательно по схеме · string / null
- appliedFromRevision
- Exact revision returned by the most recent voice agent read. обязательно по схеме · string
- changed
- Whether any native setting changed. обязательно по схеме · boolean
- operation
- Completed connection operation. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agentId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing company voice agent document ID."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact revision returned by the most recent voice agent read."
},
"values": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether the saved voice agent is enabled."
},
"voiceId": {
"type": "string",
"pattern": "^[A-Za-z0-9]{10,64}$",
"description": "Verified platform-library voice ID."
},
"fromNumber": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$",
"description": "Company source telephone in E.164 format."
}
},
"additionalProperties": false,
"description": "Connection fields to change; omitted fields remain unchanged."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable unique request ID; reuse only with identical arguments."
}
},
"required": [
"agentId",
"expectedRevision",
"values",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agentId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing company voice agent document ID."
},
"enabled": {
"type": "boolean",
"description": "Saved enabled state."
},
"voiceId": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9]{10,64}$",
"description": "Verified platform-library voice ID."
},
{
"type": "null"
}
],
"description": "Current voice ID, or null when unconfigured."
},
"fromNumber": {
"anyOf": [
{
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$",
"description": "Company source telephone in E.164 format."
},
{
"type": "null"
}
],
"description": "Current source telephone, or null when unconfigured."
},
"appliedFromRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact revision returned by the most recent voice agent read."
},
"changed": {
"type": "boolean",
"description": "Whether any native setting changed."
},
"operation": {
"type": "string",
"const": "connection_updated",
"description": "Completed connection operation."
}
},
"required": [
"agentId",
"enabled",
"voiceId",
"fromNumber",
"appliedFromRevision",
"changed",
"operation"
],
"additionalProperties": false
}