Zvid

v0.1.0
io.zvid/mcp Checked 4 days ago Published 4 months ago

Zvid: render videos & images from JSON; manage templates, projects, webhooks & credits.

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

create_render Create video render

Queue a video render. Provide either a full project JSON as `payload` or a `template` ID (optionally with `variables`). Returns a jobId to poll with get_render. Credits are reserved up front. For NEW creative content do not hand-compose the payload: run plan_creative_video (or find_matching_examples) first and adapt a library example via start_from_example, then validate_project_json before rendering.

ParameterTypeDescription
overridesobjectOptional output overrides applied on top of the payload/template.
payloadobjectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…
templatestringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)
variablesobjectTemplate variable values, keyed by variable name.
webhookUrlstringOptional per-job webhook URL notified on render.completed / render.failed.

create_image_render Create image render

Queue a still-image render (PNG/JPEG) from a project JSON or an image-type template. Overrides support snapshotTime, quality and transparent. Returns a jobId to poll with get_render. For NEW creative stills, first run find_matching_examples with type: "image" and adapt a library example via start_from_example instead of composing from scratch.

ParameterTypeDescription
overridesobjectOptional output overrides applied on top of the payload/template.
payloadobjectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…
templatestringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)
variablesobjectTemplate variable values, keyed by variable name.
webhookUrlstringOptional per-job webhook URL notified on render.completed / render.failed.

get_render Get render status

Get a render job's state (waiting|active|completed|failed), progress (0-100), and — when completed — the output url and thumbnailUrl.

ParameterTypeDescription
jobId *stringRender job ID (UUID) returned when the render was created

list_renders List renders

List this account's render jobs, newest first. Optionally filter by type (video|image).

ParameterTypeDescription
limitintegerItems per page (default 20, max 100)
pageintegerPage number (default 1)
typestring

get_project_schema Get project JSON Schema

Get the JSON Schema (draft 2020-12) for a Zvid render payload — element types, required fields, enums, defaults, min/max bounds and URL restrictions — plus notes for cross-field rules the schema cannot express (timing checks, plan limits, sanitizer rules). Use target: "render-request" for the full request envelope (payload XOR template + variables/overrides/webhookUrl). Derived from the backend validation code, which always wins over docs.

ParameterTypeDescription
targetstringWhat to describe: "project" (the payload object, default) or "render-request" (the full POST body)

validate_project_json Validate project JSON

Validate a Zvid project payload BEFORE rendering (free, no credits). Returns { valid, errors: [{field, message}], warnings }. Warnings include LAYOUT LINT — overlapping texts, x/y ignored by position presets, boxes extending off-canvas, padding that will get cut off, low text contrast — treat every layout warning as a fix-before-render item. Local validation mirrors the backend rules; set remote: true to ALSO run the payload through the live API validator (POST /api/render/validate/api-key — resolves templates and applies your plan's real limits).

ParameterTypeDescription
payload *objectThe project JSON to validate (the `payload` you would pass to create_render)
kindstringValidate as a bare "project" payload (default) or as a full "render-request" body
remotebooleanAlso validate server-side against your account's actual plan limits (default true; set false only for offline diagnostics)

list_supported_elements List supported elements

List every element type a Zvid project supports (visuals: IMAGE, VIDEO, GIF, SVG, TEXT; plus AUDIO items, SUBTITLE and SCENE) with a summary and required fields. Use get_element_docs for full per-type docs and examples.

get_element_docs Get element docs

Get concise docs for one element type — required fields, every supported field with constraints, gotchas, and a valid example. Types: IMAGE, VIDEO, GIF, SVG, TEXT, AUDIO, SUBTITLE, SCENE (case-insensitive).

ParameterTypeDescription
element *stringElement type, e.g. "TEXT", "IMAGE", "VIDEO", "GIF", "SVG", "AUDIO", "SUBTITLE", "SCENE"

get_example_payload Get example payload

Get one of five GENERIC starter payloads for a common flow: promo-video (10s scene-based hook/value/CTA with scrim + flex-centered card), template-render (variables), still-image (transparent PNG, single html card), subtitles (karaoke captions), webhook-flow (per-job webhookUrl). These are schema scaffolds, NOT the designed library — for premium creative work use find_matching_examples / start_from_example first and fall back here only when no library example fits. Omit `name` to list all examples.

ParameterTypeDescription
namestringExample name; omit to get every example

plan_creative_video Plan a professional creative video

Turn a brief into a plan-aware storyboard, style/layout direction, scene recipes and anti-repetition rules BEFORE authoring JSON — plus libraryCandidates: concrete published examples ranked against the brief with an adapt-vs-assemble decision. Follow that decision: adapt the top example via start_from_example, or assemble from the returned design-template/canvas-preset/shape modules. Modes: consistent reuses a stable seed; fresh produces a new direction; explore returns 2-5 materially different directions.

ParameterTypeDescription
brief *stringWhat the video should communicate, for whom, and the desired outcome.
aspectRatiostring
brandobjectOptional brand tokens that remain stable across creative variations.
durationnumber
exploreCountinteger
motionIntensitystring
preferredMediastring
recentAssetSlugsarrayRecently used creative-library slugs to exclude from fresh/explore results.
stylestringStyle pack id or auto. Built-ins: adaptive-modern, modern-saas, bold-commerce, editorial-data, social-kinetic, luxury-minimal.
variationModestring
variationSeedOptional reproducible seed. Reuse it for the same composition; change or omit it for a fresh direction.

find_matching_examples Find matching library examples

Match a brief against the ENTIRE published examples library (hundreds of professionally designed, render-ready projects) and return ranked candidates with thumbnails/previews plus a decision: "adapt-example" (strong match — call start_from_example), "adapt-or-assemble", or "assemble-similar" (compose from the returned design-template/canvas-preset/shape modules). Use this before authoring any project JSON by hand; matching runs over full metadata with category synonyms, so it finds examples the plain search_creative_library query cannot.

ParameterTypeDescription
brief *stringWhat to create, for whom, and the goal — same brief you would give plan_creative_video.
aspectRatiostring
durationnumberTarget video duration in seconds (soft signal).
excludePremiumbooleanSet true on free-plan accounts to skip premium examples (their content is plan-gated).
excludeSlugsarrayRecently used example slugs to exclude (anti-repetition).
includePartsbooleanInclude design-template/canvas-preset/shape modules for assembly. Default: automatic (included unless a strong example match exists).
limitinteger
typestringRestrict to video examples, still-image examples, or both.
variationModestringfresh (default) rotates which comparable top candidate leads, so repeated identical briefs vary; "consistent" keeps ranking deterministic.
variationSeedOptional reproducible seed for the rotation; omit for a new pick per request.

render_from_example Render an adapted library example

The EASIEST premium render path: pick a library example and supply new VARIABLE VALUES (copy, media URLs, colors) — the server fetches the example, saves it as a template, dry-runs your variables, and queues the render, keeping the example's designed layout/animations fully intact. Use start_from_example first to see the variable names and defaults. Provide only declared variables; unknown names are reported. Spends credits like create_render; returns jobId + the created templateId for reuse.

ParameterTypeDescription
slug *stringLibrary example slug to render
namestringOutput/job name (letters, digits, spaces, _ and - only)
overridesobjectOptional output overrides applied on top of the payload/template.
variablesobjectNew values for the example's declared variables (see start_from_example adaptationMap.variables). Omitted variables keep their defaults.

start_from_example Start from a library example

Fetch a library example's complete render-ready project JSON plus an ADAPTATION MAP (declared variables with defaults, text slots with current copy, media slots, scene/timing summary, fonts) and the adaptation contract. This is the premium-quality path: keep the example's layout and animations, swap copy/media/brand. When adaptationMap.recommendedWorkflow is "template-render" (variables/condition/iterate present), save the payload with create_template and render with variables instead of editing placeholders inline. Premium examples need a paid plan — if locked, free alternatives are suggest…

ParameterTypeDescription
slug *stringExample slug from find_matching_examples, plan_creative_video libraryCandidates, or search_creative_library

search_creative_library Search the creative library

Search curated complete project examples, animated Design Studio templates, canvas motion presets, or shapes. NOTE: the server search is a plain AND-of-substrings over title/slug/description — use short single-word queries here, and prefer find_matching_examples when matching a brief to examples (it ranks the whole library with category synonyms). Inspect preview/thumbnail metadata before choosing. For fresh/explore work, exclude recent slugs returned by plan_creative_video.

ParameterTypeDescription
kind *string
limitinteger
offsetinteger
querystringShort search text (server max 80 chars; only the first 4 whitespace-separated terms are ANDed)

get_creative_asset Get a creative-library asset

Get metadata and, by default, the full JSON content for one creative-library item. Examples are complete projects — when you intend to ADAPT one, prefer start_from_example (it also returns an adaptation map and contract). Design templates/canvas presets/shapes are reusable modules and must be composed into a project.

ParameterTypeDescription
kind *string
slug *string
includeContentboolean

list_stock_providers List configured stock-media providers

List the stock providers currently available for image, video, GIF and audio searches.

search_stock_media Search stock media

Search server-configured stock image, video, GIF or music providers. Results contain preview and full-quality src URLs suitable for Zvid payloads plus dimensions/duration and attribution metadata.

ParameterTypeDescription
type *string
pageinteger
perPageinteger
providerstring
querystring

repair_project_json Repair project JSON

Attempt conservative auto-fixes on an invalid project payload (wrong-case type, clamped numbers, format conflicts like transparent+jpg, swapped begin/end timings, unknown fields, empty/impossible elements) and explain every change. Returns the repaired payload plus its validation result — problems that need real input (e.g. missing media URLs) are left as errors.

ParameterTypeDescription
payload *objectThe (possibly invalid) project JSON to repair

create_bulk_render Create bulk render

Queue N renders from one template/payload and a list of per-item variable sets (max 500 items, plan-limited). Validation is best-effort per item: valid items queue, invalid ones are reported in itemErrors. Returns bulkId + jobIds.

ParameterTypeDescription
items *arrayOne entry per render; each item's variables merge over the base variables.
kindstringWhat the payload/template renders
namestringName for the bulk batch
overridesobjectOptional output overrides applied on top of the payload/template.
payloadobjectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…
templatestringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)
variablesBase variables applied to every item
webhookUrlstringOptional per-job webhook URL notified on render.completed / render.failed.

get_bulk_render Get bulk render

Get a bulk render batch by ID (blk_...) including its jobs' states.

ParameterTypeDescription
bulkId *stringBulk render ID, e.g. "blk_..."

list_bulk_renders List bulk renders

List this account's bulk render batches.

ParameterTypeDescription
limitintegerItems per page (default 20, max 100)
pageintegerPage number (default 1)

list_templates List templates

List this account's render templates (id, name, description).

ParameterTypeDescription
limitintegerItems per page (default 20, max 100)
pageintegerPage number (default 1)

get_template Get template

Get a template by ID including its full project JSON (inspect it to discover the variables it expects).

ParameterTypeDescription
templateId *stringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)

create_template Create template

Create a reusable template from complete project JSON. Read get_project_schema first; every placeholder must have a safe default and video-template scenes need explicit durations. The backend validates the template against this account's plan before saving it. This is also the render path for adapted library examples that use variables/condition/iterate: create_template -> preview_template -> create_render { template, variables }.

ParameterTypeDescription
name *string
payload *objectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…
descriptionstring

update_template Update template

Rename a template, change its description, and/or replace its project JSON. Get the current template first so fields are not accidentally lost; replacement JSON is fully validated before saving.

ParameterTypeDescription
templateId *stringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)
descriptionstring
namestring
payloadobjectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…

delete_template Archive template

Archive an active template owned by this account. Archived templates cannot be rendered or updated, so call this only when the user explicitly asks to remove it.

ParameterTypeDescription
templateId *stringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)

duplicate_template Duplicate template

Create an editable copy of an owned template, including archived templates. The copy is active and counts against the account's template quota.

ParameterTypeDescription
templateId *stringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)

preview_template Preview template (dry run)

Resolve a template's variables and validate the result WITHOUT rendering or spending credits. Use this to check variable values before create_render.

ParameterTypeDescription
templateId *stringTemplate ID, e.g. "tpl_AbC123..." (20 chars after the prefix)
overridesobjectOptional output overrides applied on top of the payload/template.
variablesobjectTemplate variable values, keyed by variable name.

list_projects List projects

List editor draft projects saved on this account.

ParameterTypeDescription
limitintegerItems per page (default 20, max 100)
pageintegerPage number (default 1)

get_project Get project

Get a draft project (prj_...) including its project JSON.

ParameterTypeDescription
projectId *stringProject ID, e.g. "prj_..."

create_project Create project

Save a new editor draft project. It becomes editable at https://zvid.io/editor?project=<id>.

ParameterTypeDescription
name *string
payload *objectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…

update_project Update project

Rename a draft project and/or replace its project JSON.

ParameterTypeDescription
projectId *stringProject ID, e.g. "prj_..."
namestring
payloadobjectFull Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE r…

delete_project Delete project

Permanently delete a draft project.

ParameterTypeDescription
projectId *stringProject ID, e.g. "prj_..."

list_webhooks List webhooks

List webhook endpoints registered on this account, plus usage vs plan limit.

create_webhook Create webhook

Register a webhook endpoint for render events. The response includes the signing secret (whsec_...) shown in full only here and on get_webhook — deliveries are signed with HMAC-SHA256 in the X-Zvid-Signature header.

ParameterTypeDescription
events *arrayEvents to subscribe to
url *stringHTTPS endpoint to deliver events to
descriptionstring

get_webhook Get webhook

Get a webhook endpoint (whk_...) including its signing secret and failure state.

ParameterTypeDescription
webhookId *stringWebhook ID, e.g. "whk_..."

update_webhook Update webhook

Update a webhook's url, events, description, or enable/disable it.

ParameterTypeDescription
webhookId *stringWebhook ID, e.g. "whk_..."
descriptionstring
eventsarray
statusstring
urlstring

delete_webhook Delete webhook

Delete a webhook endpoint.

ParameterTypeDescription
webhookId *stringWebhook ID, e.g. "whk_..."

test_webhook Send test webhook

Queue a signed test event delivery to a webhook endpoint.

ParameterTypeDescription
webhookId *stringWebhook ID, e.g. "whk_..."

list_webhook_deliveries List webhook deliveries

List recent delivery attempts for a webhook endpoint (status, attempts, response codes).

ParameterTypeDescription
webhookId *stringWebhook ID, e.g. "whk_..."
limitintegerItems per page (default 20, max 100)
pageintegerPage number (default 1)

get_credits Get credit balance

Get the account's credit balance (total balance, subscription credits, and add-on credit pack balance).

get_usage_stats Get usage stats

Get render/credit usage statistics for a timeframe (e.g. 7d, 30d, 90d).

ParameterTypeDescription
timeframestringTimeframe like "30d" (default)