Skip to main content

Tool: list_templates

List all available templates with their layouts.

Parameters

Example Request

Response

Response Structure

Template Object

  • template_id (string): Unique identifier for the template
  • template_name (string): Human-readable template name
  • layouts (array): Available layouts within this template

Layout Object

  • layout_id (string): Unique identifier for the layout
  • layout_name (string): Human-readable layout name (e.g., “Title Slide”, “Content Slide”)
  • master_name (string): Master slide name
  • master_index (integer): Index of the master slide
  • layout_index (integer): Index of the layout within the master
  • thumbnail_url (string): URL to preview thumbnail

Using Templates

Once you have the template list, you can use a template_id in your generation requests:

Python Example

Best Practices

  • Cache Templates: Template lists don’t change frequently, so cache the results
  • Use Default: If default_template_id is provided, you can omit template_id in requests
  • Inspect Layouts: Check available layouts to understand what’s available for each template

Selecting Templates

Learn how to choose and use templates

Generate Slides

Use templates in slide generation