get_chat_messages
Retrieve chat messages from meetings managed by AI bots on the Attendee MCP Server. Input the bot ID to access recorded conversations for transcription or analysis.
Instructions
Get chat messages from the meeting
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ID of the bot to get chat messages for |
Implementation Reference
- src/index.ts:636-653 (handler)Executes the get_chat_messages tool: validates bot_id, calls API to fetch chat messages, formats output using helper, and returns text content.private async getChatMessages(args: Record<string, unknown>) { const bot_id = args.bot_id as string; if (!bot_id || typeof bot_id !== 'string') { throw new Error("Missing or invalid required parameter: bot_id"); } const data = await this.makeApiRequest(`/api/v1/bots/${bot_id}/chat_messages`); return { content: [ { type: "text", text: this.formatChatMessages(data, bot_id), }, ], }; }
- src/index.ts:324-333 (schema)Input schema definition for the get_chat_messages tool, specifying bot_id as required string.inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot to get chat messages for", }, }, required: ["bot_id"], },
- src/index.ts:321-334 (registration)Tool registration in the tools list returned by listTools handler, defining name, description, and input schema.{ name: "get_chat_messages", description: "Get chat messages from the meeting", inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot to get chat messages for", }, }, required: ["bot_id"], }, },
- src/index.ts:185-200 (helper)Formats the raw chat messages data into a human-readable string with timestamps and sender names.private formatChatMessages(data: any, botId: string): string { if (!Array.isArray(data) || data.length === 0) { return `💬 No chat messages found for bot ${botId}`; } let chatOutput = `💬 Chat Messages for bot ${botId}:\n\n`; chatOutput += "─".repeat(50) + "\n"; data.forEach((message: any) => { const timestamp = new Date(message.created_at).toLocaleTimeString(); chatOutput += `[${timestamp}] ${message.sender_name}:\n${message.message}\n\n`; }); chatOutput += "─".repeat(50) + `\n📊 Total messages: ${data.length}`; return chatOutput; }