retell_update_agent
Modify settings for an existing voice agent, including voice, language, webhook, and interaction parameters, to adjust its behavior and configuration.
Instructions
Update configuration for an existing voice agent.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent ID to update | |
| agent_name | No | New display name | |
| voice_id | No | New voice ID | |
| language | No | New language code | |
| webhook_url | No | New webhook URL | |
| interruption_sensitivity | No | New interruption sensitivity | |
| enable_backchannel | No | Enable/disable backchannel |
Implementation Reference
- src/index.ts:1175-1178 (handler)Handler implementation for the retell_update_agent tool. Extracts agent_id from arguments and sends a PATCH request to the Retell API's /update-agent/{agent_id} endpoint with the remaining update data.case "retell_update_agent": { const { agent_id, ...agentUpdateData } = args; return retellRequest(`/update-agent/${agent_id}`, "PATCH", agentUpdateData as Record<string, unknown>); }
- src/index.ts:529-562 (schema)Input schema defining the parameters for the retell_update_agent tool, requiring agent_id and allowing optional updates to agent_name, voice_id, language, webhook_url, interruption_sensitivity, and enable_backchannel.inputSchema: { type: "object", properties: { agent_id: { type: "string", description: "The agent ID to update" }, agent_name: { type: "string", description: "New display name" }, voice_id: { type: "string", description: "New voice ID" }, language: { type: "string", description: "New language code" }, webhook_url: { type: "string", description: "New webhook URL" }, interruption_sensitivity: { type: "number", description: "New interruption sensitivity" }, enable_backchannel: { type: "boolean", description: "Enable/disable backchannel" } }, required: ["agent_id"] }
- src/index.ts:526-563 (registration)Tool registration in the tools array used by ListToolsRequestHandler, defining the name, description, and input schema for retell_update_agent.{ name: "retell_update_agent", description: "Update configuration for an existing voice agent.", inputSchema: { type: "object", properties: { agent_id: { type: "string", description: "The agent ID to update" }, agent_name: { type: "string", description: "New display name" }, voice_id: { type: "string", description: "New voice ID" }, language: { type: "string", description: "New language code" }, webhook_url: { type: "string", description: "New webhook URL" }, interruption_sensitivity: { type: "number", description: "New interruption sensitivity" }, enable_backchannel: { type: "boolean", description: "Enable/disable backchannel" } }, required: ["agent_id"] } },