send_video_to_meeting
Upload and play an MP4 video during a Google Meet session using a designated bot. Provide the bot ID and HTTPS video URL to enable video sharing in meetings.
Instructions
Send a video 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 play the video | |
| video_url | Yes | HTTPS URL of the MP4 video to play |
Implementation Reference
- src/index.ts:687-719 (handler)The handler function for send_video_to_meeting tool. Validates bot_id and video_url (must be https:// and end with .mp4), sends POST request to /api/v1/bots/{bot_id}/output_video with the video URL, and returns a success message.private async sendVideoToMeeting(args: Record<string, unknown>) { const bot_id = args.bot_id as string; const video_url = args.video_url as string; if (!bot_id || typeof bot_id !== 'string') { throw new Error("Missing or invalid required parameter: bot_id"); } if (!video_url || typeof video_url !== 'string') { throw new Error("Missing or invalid required parameter: video_url"); } if (!video_url.startsWith('https://')) { throw new Error("Video URL must start with https://"); } if (!video_url.endsWith('.mp4')) { throw new Error("Video URL must end with .mp4"); } await this.makeApiRequest(`/api/v1/bots/${bot_id}/output_video`, "POST", { url: video_url }); return { content: [ { type: "text", text: `✅ Video sent to meeting from bot ${bot_id}\n🎬 Video URL: ${video_url}\n\n💡 The video should now be playing in the meeting (Google Meet only)!`, }, ], }; }
- src/index.ts:361-374 (schema)Input schema definition for the send_video_to_meeting tool, specifying required bot_id and video_url parameters with descriptions.inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot that should play the video", }, video_url: { type: "string", description: "HTTPS URL of the MP4 video to play", }, }, required: ["bot_id", "video_url"], },
- src/index.ts:358-375 (registration)Tool registration in the list of tools provided by ListToolsRequestSchema handler. Includes name, description, and input schema.{ name: "send_video_to_meeting", description: "Send a video to the meeting through the bot (Google Meet only)", inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot that should play the video", }, video_url: { type: "string", description: "HTTPS URL of the MP4 video to play", }, }, required: ["bot_id", "video_url"], }, },
- src/index.ts:425-426 (registration)Registration in the CallToolRequestSchema switch dispatcher that routes the tool call to the sendVideoToMeeting handler.case "send_video_to_meeting": return await this.sendVideoToMeeting(args);