Skip to main content
Glama

Describe a template's fillable inputs

get_template_inputs
Read-onlyIdempotent

Returns the inputs of one template that batch rows can fill: each input's id, label, text or image type, whether it is required, its default (a text input's value, an image input's asset and preview), image slot size and fit, the key rows use for it (its name, or its id when two layers share the name), a text input's styles (s1, s2, ...) when it has several, and a valueExample; rowExample is a whole ready row. Those keys and values are what validate_batch, create_batch, update_batch, and update_job accept. It needs a template ID; finding templates is search_templates' job. Inputs the author turned off or placed on hidden layers are left out unless requested, and omittedInputs names them: their template text still renders, so check them (dates, terms, links) when the copy changes theme; a row can fill them by key. The template's internal layout is not returned. An animated template also gives its duration and its stillTime, the second its images show unless create_batch gives another. Needs templates:read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdNoOne page of the template (the designer connection's page_id). A template's pages are separate designs, each with its own inputs; the first page when omitted.
templateIdYesTemplate ID returned by search_templates
includeHiddenNoAlso return inputs on layers hidden in the template
includeDisabledNoAlso return inputs the template author turned off

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameYes
pagesNoThe template's pages; each is a separate design with its own inputs
widthYesWidth in pixels; null if unknown
heightYesHeight in pixels; null if unknown
inputsYes
pageIdNoThe page these inputs are from (pass it as pageId to the batch tools)
openUrlYesLink that opens the template in the Kalpana app
durationNoAn animated template's timeline length in seconds
stillTimeNoThe second the page's still image shows, set by its designer. Images use it unless create_batch gives stillTime; without either, they show the last frame
isAnimatedNoTrue when the template moves; each image shows one moment of the motion
rowExampleNoA row filling every input, keyed and shaped as rows are: copy and edit it
descriptionYes
omittedInputsNoInputs left out of `inputs`. Their template text renders as designed unless a row fills them by key; check them when the copy changes theme (dates, terms, links)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources