update_elevenlabs_token
Update the ElevenLabs API key for VoiceAI-MCP-VAVicky to maintain access to voice generation services.
Instructions
Update Elevenlabs API Key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elevenlabs_token | Yes | Elevenlabs API Key |
Implementation Reference
- index.js:523-527 (handler)The handler logic in the executeTool method's switch statement. It sets up a POST request to the backend API endpoint `/elevenlabs/oauth` with the provided elevenlabs_token in the body.case 'update_elevenlabs_token': url = `${this.baseUrl}/elevenlabs/oauth`; method = 'POST'; body = { elevenlabs_token: args.elevenlabs_token }; break;
- index.js:90-100 (schema)Defines the input schema for the tool, specifying that it requires an 'elevenlabs_token' string parameter. This is part of the tool list returned by the ListToolsRequestSchema handler.{ name: 'update_elevenlabs_token', description: 'Update Elevenlabs API Key', inputSchema: { type: 'object', properties: { elevenlabs_token: { type: 'string', description: 'Elevenlabs API Key' } }, required: ['elevenlabs_token'] } },
- index.js:90-100 (registration)The tool is registered by including it in the list of available tools returned by the ListToolsRequestSchema handler.{ name: 'update_elevenlabs_token', description: 'Update Elevenlabs API Key', inputSchema: { type: 'object', properties: { elevenlabs_token: { type: 'string', description: 'Elevenlabs API Key' } }, required: ['elevenlabs_token'] } },