cancel_call
Terminate an ongoing phone call by providing the call ID. This tool allows users to end active calls within the VoiceAI platform.
Instructions
Cancel an active phone call
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call_id | Yes | Call ID |
Implementation Reference
- index.js:678-681 (handler)The handler logic for the 'cancel_call' tool. It sets the API endpoint URL to `/twilio/calls/{call_id}` and the HTTP method to 'DELETE' to cancel the specified call.case 'cancel_call': url = `${this.baseUrl}/twilio/calls/${args.call_id}`; method = 'DELETE'; break;
- index.js:430-440 (registration)Registration of the 'cancel_call' tool in the listTools response, including its name, description, and input schema requiring a 'call_id' string.{ name: 'cancel_call', description: 'Cancel an active phone call', inputSchema: { type: 'object', properties: { call_id: { type: 'string', description: 'Call ID' } }, required: ['call_id'] } },