generate_transcripts
Generate speaker notes and transcripts for slides in an existing presentation to create talking points for delivery.
Instructions
Generate speaker notes or transcripts for slides in an existing presentation. Use this when the deck visuals are ready and you need talking points for delivery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| presentation_id | Yes | Presentation whose slides need speaker notes. | |
| slide_ids | No | Optional subset of slide identifiers to process. |
Implementation Reference
- src/index.js:323-346 (registration)Registration of the 'generate_transcripts' tool with input schema (presentation_id required, slide_ids optional). The handler delegates to the remote MCP endpoint via callRemoteTool.
server.registerTool( "generate_transcripts", { description: "Generate speaker notes or transcripts for slides in an existing presentation. Use this when the deck visuals are ready and you need talking points for delivery.", inputSchema: { presentation_id: z .string() .min(1) .describe("Presentation whose slides need speaker notes."), slide_ids: z .array(z.string()) .optional() .describe("Optional subset of slide identifiers to process."), }, }, async (args) => { try { return await callRemoteTool("generate_transcripts", args); } catch (error) { return normalizeError(error); } }, ); - src/index.js:328-337 (schema)Input schema for generate_transcripts: requires presentation_id (string), optionally accepts slide_ids (array of strings).
inputSchema: { presentation_id: z .string() .min(1) .describe("Presentation whose slides need speaker notes."), slide_ids: z .array(z.string()) .optional() .describe("Optional subset of slide identifiers to process."), }, - src/index.js:339-345 (handler)Handler for generate_transcripts: proxies call to the remote Alai MCP endpoint via callRemoteTool, with error normalization.
async (args) => { try { return await callRemoteTool("generate_transcripts", args); } catch (error) { return normalizeError(error); } }, - src/index.js:22-43 (helper)Generic remote tool caller used by generate_transcripts to forward the request to the Alai MCP endpoint.
async function callRemoteTool(name, args) { const client = new Client( { name: "alai-mcp-wrapper", version: "1.0.2" }, { capabilities: {} }, ); const transport = new StreamableHTTPClientTransport(new URL(REMOTE_MCP_URL), { requestInit: { headers: createRemoteHeaders(), }, }); try { await client.connect(transport); return await client.callTool({ name, arguments: args, }); } finally { await transport.close().catch(() => {}); await client.close().catch(() => {}); } }