chat_with_assistant
Send messages to a specific AI assistant through chat threads, with optional audio responses for voice-based interactions.
Instructions
Chat with a specific assistant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assistant_id | Yes | Assistant ID | |
| message | Yes | Message to send | |
| thread_id | Yes | Chat/Thread ID | |
| audio | No | Enable audio response |
Implementation Reference
- index.js:595-602 (handler)Handler logic for the 'chat_with_assistant' tool. Sets up a POST request to the backend API `/assistants/{assistant_id}/chat` endpoint, passing message, thread_id, and optional audio flag.case 'chat_with_assistant': url = `${this.baseUrl}/assistants/${args.assistant_id}/chat?audio=${args.audio || false}`; method = 'POST'; body = { message: args.message, thread_id: args.thread_id }; break;
- index.js:301-310 (schema)Input schema definition for the 'chat_with_assistant' tool, specifying parameters: assistant_id, message, thread_id (required), and optional audio.inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, message: { type: 'string', description: 'Message to send' }, thread_id: { type: 'string', description: 'Chat/Thread ID' }, audio: { type: 'boolean', description: 'Enable audio response', default: false } }, required: ['assistant_id', 'message', 'thread_id'] }
- index.js:298-311 (registration)Registration of the 'chat_with_assistant' tool in the list of available tools returned by ListToolsRequestHandler.{ name: 'chat_with_assistant', description: 'Chat with a specific assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, message: { type: 'string', description: 'Message to send' }, thread_id: { type: 'string', description: 'Chat/Thread ID' }, audio: { type: 'boolean', description: 'Enable audio response', default: false } }, required: ['assistant_id', 'message', 'thread_id'] } },