send_image_to_meeting
Send an image to a Google Meet meeting via a bot, enabling visual communication by providing the bot ID and HTTPS image URL.
Instructions
Send an image to the meeting through the bot (Google Meet only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ID of the bot that should display the image | |
| image_url | Yes | HTTPS URL of the image to display |
Implementation Reference
- src/index.ts:657-685 (handler)The handler function that executes the send_image_to_meeting tool: validates bot_id and image_url, calls the API endpoint /api/v1/bots/{bot_id}/output_image with the image URL, and returns a success message.private async sendImageToMeeting(args: Record<string, unknown>) { const bot_id = args.bot_id as string; const image_url = args.image_url as string; if (!bot_id || typeof bot_id !== 'string') { throw new Error("Missing or invalid required parameter: bot_id"); } if (!image_url || typeof image_url !== 'string') { throw new Error("Missing or invalid required parameter: image_url"); } if (!image_url.startsWith('https://')) { throw new Error("Image URL must start with https://"); } await this.makeApiRequest(`/api/v1/bots/${bot_id}/output_image`, "POST", { url: image_url }); return { content: [ { type: "text", text: `✅ Image sent to meeting from bot ${bot_id}\n📷 Image URL: ${image_url}\n\n💡 The image should now be displayed in the meeting (Google Meet only)!`, }, ], }; }
- src/index.ts:343-356 (schema)Input schema for the send_image_to_meeting tool, defining bot_id and image_url as required string parameters.inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot that should display the image", }, image_url: { type: "string", description: "HTTPS URL of the image to display", }, }, required: ["bot_id", "image_url"], },
- src/index.ts:340-357 (registration)Registration of the send_image_to_meeting tool in the ListTools response, including name, description, and input schema.{ name: "send_image_to_meeting", description: "Send an image to the meeting through the bot (Google Meet only)", inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot that should display the image", }, image_url: { type: "string", description: "HTTPS URL of the image to display", }, }, required: ["bot_id", "image_url"], }, },
- src/index.ts:422-423 (registration)Dispatch case in the CallToolRequest handler that routes to the sendImageToMeeting method.case "send_image_to_meeting": return await this.sendImageToMeeting(args);