Templated

v1.9.0
io.github.templated-io/mcp-server-templated Checked 19 hours ago Published 1 month ago

Generate images, videos and PDFs from templates.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_render

Render a Templated template into an image (JPG, PNG or WebP), a PDF or an MP4 video, with new text, images and colors in its layers. Use this when the user wants a finished design from one of their templates, such as a social media post, banner, OG image, certificate or invoice. Templated fills the saved template with the exact values given: this is template rendering, not AI image generation. Pass the template ID and 'layers' keyed by the layer names from get_template_layers; names the template doesn't have are rejected before anything is rendered. Multi-page templates render every page, or o…

ParameterTypeDescription
template *stringThe template ID to render (from list_templates)
backgroundstringBackground color in hex format (e.g., #FF0000)
cmykbooleanUse CMYK color mode (PDF only)
durationnumberVideo duration in milliseconds (MP4 only, max 90000)
flattenbooleanFlatten PDF for print-ready documents
formatstringOutput format. Default: jpg
fpsnumberFrames per second (MP4 only, 1-60)
heightnumberCustom height in pixels (100-5000)
layersobjectLayer values keyed by layer name, e.g. { "title": { "text": "Hello" }, "photo": { "image_url": "https://..." } }. Each value can set text, image_url, color, background, hide and other layer properties…
namestringCustom name for the render
pagesarrayFor multi-page templates: the pages to render, each with its own layer values. Each item has 'page' (a page name from get_template_pages) and 'layers' keyed by layer name, like the top-level 'layers'.…
scalenumberScale factor (0.1-2.0)
transparentbooleanMake background transparent (PNG only)
widthnumberCustom width in pixels (100-5000)

get_render

Get one render by ID with its status, format, size and file URL. Use this to check whether a render has finished or to find its URL again.

ParameterTypeDescription
render_id *stringThe render ID

list_renders

List the renders in the connected Templated account, newest first, 25 per page by default (max 100). Use this to find a render's ID or file URL, for example to merge PDFs with merge_renders. Returns each render's id, url, status, format, size and template.

ParameterTypeDescription
limitnumberResults per page (default: 25, max: 100)
pagenumberPage number, starting at 0 (default: 0)

delete_render

Permanently delete a render from the connected Templated account; it can't be restored. Use this when the user asks to remove a render. Takes the render ID from list_renders and returns a confirmation.

ParameterTypeDescription
render_id *stringThe render ID to delete

merge_renders

Merge several renders into one PDF, in the order given, for example one certificate or invoice per recipient. Image renders become PDF pages. Use this after creating the individual renders. Each merge counts toward the account's render usage. Returns the URL of the merged PDF. With host set to false the PDF itself is returned inline instead, which only works for PDFs up to 100 KB.

ParameterTypeDescription
render_ids *arrayRender IDs to merge, in page order
hostbooleantrue (default): return a URL to the merged PDF. false: return the PDF inline as an embedded file, for PDFs up to 100 KB.

list_templates

List the templates in the connected Templated account, 25 per page by default (max 100), optionally filtered by name (query), size (width, height) or tags. Use this first to find the template ID for create_render, get_template_layers or update_template. Returns each template's id, name, size, thumbnail, folder, and layer and page counts.

ParameterTypeDescription
heightnumberFilter by template height
includeLayersbooleanInclude each template's layers (a much larger response; get_template_layers reads one template's layers)
limitnumberResults per page (default: 25, max: 100)
pagenumberPage number, starting at 0 (default: 0)
querystringSearch query to filter templates by name
tagsstringFilter by tags (comma-separated)
widthnumberFilter by template width

get_template

Get one template's details by ID: name, size, background, thumbnail, tags, folder, and layer and page counts. Use this to check a template's size or settings; get_template_layers returns its editable layers.

ParameterTypeDescription
template_id *stringThe template ID

get_template_layers

List a template's layers with their names, types and current values (text, image_url, colors, fonts, position and size). Use this before create_render: the layer names are the keys create_render accepts in 'layers'. Covers every page of a multi-page template; get_template_pages groups the layers by page.

ParameterTypeDescription
template_id *stringThe template ID

get_template_pages

List the pages of a multi-page or multi-size template, each with its name, width, height and layers keyed by layer name. Use this to render specific pages with create_render ('pages') or to edit pages with update_template, which accepts the same shape.

ParameterTypeDescription
template_id *stringThe template ID

create_template

Create a new template in the connected Templated account from layers, for example a social media post, banner, OG image, certificate or invoice. Use this when none of the existing templates fits or the account has no templates yet. Each layer has a unique name in 'layer' and a 'type': text, image, shape or rating. Shape layers draw rectangles, circles and other shapes from SVG content in 'html'. For a multi-page or multi-size template (several sizes in one template), pass 'pages' in place of 'layers'. Returns the new template; its ID can be rendered right away with create_render.

ParameterTypeDescription
height *numberTemplate height in pixels
name *stringTemplate name
width *numberTemplate width in pixels
backgroundstringTemplate background color (e.g., '#ffffff', 'rgb(255,255,255)', 'transparent')
durationnumberDefault video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds). Used as fallback when no duration is specified at render time.
layersarrayLayers of a single-page template. Each layer object has 'layer' (its unique name, later used as the key in create_render) and 'type'.
pagesarrayPages for a multi-page or multi-size template (for example an Instagram square, a story and an X landscape version in one template, each with its own width and height). Used in place of top-level 'lay…

update_template

Change an existing template: name, description, size, background, default video duration, layers or pages. Use this to edit a design, resize it, or add sizes to a multi-size template. Layers are matched by their 'layer' name: an existing layer is updated in place and a new name is added. Top-level 'layers' apply to the first page; 'pages' reaches the others. With replaceLayers true, layers missing from the request are deleted. To move a layer, send both x and y (a missing coordinate is set to 0). In 'pages', a page name that doesn't exist yet is added and an existing page has its layers update…

ParameterTypeDescription
template_id *stringThe template ID to update
backgroundstringTemplate background color
descriptionstringNew template description
durationnumberDefault video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds)
heightnumberNew height in pixels. Applies to every page; rejected on multi-size templates (use per-page height inside 'pages')
layersarrayLayer definitions. Each has 'layer' (its unique name) and 'type' (text, image, shape or rating).
namestringNew template name
pagesarrayPages for a multi-page or multi-size template (for example an Instagram square, a story and an X landscape version in one template, each with its own width and height). Used in place of top-level 'lay…
replaceLayersbooleantrue: delete the layers (on the pages being updated) that are missing from the request. false (default): keep them.
widthnumberNew width in pixels. Applies to every page; rejected on multi-size templates (use per-page width inside 'pages')

clone_template

Copy a template, with all its layers and pages, into a new template in the same account. Use this to make a variation without changing the original. Returns the copy, which keeps the original's name unless 'name' is given.

ParameterTypeDescription
template_id *stringThe template ID to clone
namestringName for the cloned template

delete_template

Permanently delete a template from the connected Templated account; it can't be restored or rendered afterwards. Renders already created from it are kept. Use this when the user asks to delete a template.

ParameterTypeDescription
template_id *stringThe template ID to delete

list_template_renders

List the renders created from one template, 25 per page by default (max 100). Use this to find earlier outputs of a template. Returns each render's id, url, status and format.

ParameterTypeDescription
template_id *stringThe template ID
limitnumberResults per page (default: 25, max: 100)
pagenumberPage number, starting at 0 (default: 0)

list_folders

List the folders in the connected Templated account with the number of templates in each, 25 per page by default (max 100). Use this to find a folder ID for update_folder or delete_folder. Returns the folders plus total and hasMore.

ParameterTypeDescription
limitnumberResults per page (default: 25, max: 100)
pagenumberPage number, starting at 0 (default: 0)

create_folder

Create a folder to organize templates in the connected Templated account. Use this when the user wants to group templates. Returns the new folder with its ID.

ParameterTypeDescription
name *stringFolder name

update_folder

Rename a folder. Use this when the user wants to change a folder's name. Returns the updated folder.

ParameterTypeDescription
folder_id *stringThe folder ID
name *stringNew folder name

delete_folder

Delete a folder from the connected Templated account. The templates inside it are not deleted: they move out of the folder to the top level of the account. Use this when the user asks to remove a folder.

ParameterTypeDescription
folder_id *stringThe folder ID to delete

list_uploads

List the images uploaded to the connected Templated account, 25 per page by default (max 100). Use this to reuse an uploaded image: its 'path' is a URL that can be set as image_url on an image layer. Returns each upload's id, name, type, size and path.

ParameterTypeDescription
limitnumberResults per page (default: 25, max: 100)
pagenumberPage number, starting at 0 (default: 0)

create_upload

Upload an image (JPG, PNG, WebP or SVG, up to 10 MB) from a public URL to the connected Templated account. Use this to keep an image in the account's assets for templates and renders. Returns the upload; its 'path' is the URL to use as image_url. API reference: https://templated.io/docs

ParameterTypeDescription
url *stringPublic URL of the image to upload
namestringOptional name for the upload

delete_upload

Permanently delete an uploaded image from the connected Templated account; it can't be restored. Use this when the user asks to remove an upload. Takes the upload ID from list_uploads.

ParameterTypeDescription
upload_id *stringThe upload ID to delete

list_fonts

List the custom fonts uploaded to the connected Templated account, 25 per page by default (max 100). Templates can also use any Google Font by family name: set include_google_fonts to true to list those too, and query to search by name. Use this to choose a font_family for create_template or update_template, or to find the name for delete_font. Returns the font names plus total and hasMore.

ParameterTypeDescription
include_google_fontsbooleanAlso list the Google Fonts available to every template (default: false)
limitnumberResults per page (default: 25, max: 100)
pagenumberPage number, starting at 0 (default: 0)
querystringOnly fonts whose name contains this text (case-insensitive)

upload_font

Upload a custom font file (TTF, OTF, WOFF or WOFF2) from a public URL to the connected Templated account under the given family name. Use this when a design needs a font that isn't a Google Font; templates then use it as font_family. Returns the font. API reference: https://templated.io/docs

ParameterTypeDescription
name *stringFont family name
url *stringURL of the font file (TTF, OTF, WOFF, WOFF2)

delete_font

Permanently delete a custom font from the connected Templated account by family name, including every file uploaded under that name. Templates that use it fall back to another font in later renders. Use this when the user asks to remove a font.

ParameterTypeDescription
font_name *stringThe font family name to delete, as returned by list_fonts

get_account

Get the connected Templated account's render usage for the current period: renders used (apiUsage), renders included (apiQuota) and the percentage used. Use this to check how many renders are left before a large batch.