list_templates
Browse available caption style templates with IDs and names to select styles for creating short-form videos from YouTube content.
Instructions
List all available caption style templates with IDs and names. Use the templateId when creating shorts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/list-templates.js:8-15 (handler)The actual logic for the 'list_templates' tool handler, which calls client.listTemplates() and formats the output.
async () => { try { const result = await client.listTemplates(); return { content: [{ type: 'text', text: formatTemplatesResponse(result) }] }; } catch (error) { return { content: [{ type: 'text', text: formatError(error) }], isError: true }; } } - src/tools/list-templates.js:3-17 (registration)The registration function that defines the 'list_templates' tool with the MCP server.
export function registerListTemplates(server, client) { server.tool( 'list_templates', 'List all available caption style templates with IDs and names. Use the templateId when creating shorts.', {}, async () => { try { const result = await client.listTemplates(); return { content: [{ type: 'text', text: formatTemplatesResponse(result) }] }; } catch (error) { return { content: [{ type: 'text', text: formatError(error) }], isError: true }; } } ); }