Skip to main content

Template Apply

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEffmpeg.template_apply
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.3
  • Descriptor hash: 4d4f76e77c33c2ccdc7703907d6905911994d3aade62f59d6aec9d208b70d5f9

Use this to render a staged asset through an approved template with bounded variables and optional brand kit. It queues a new output asset.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-template-apply-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.template_apply",
"arguments": {
"asset_id": "asset_id_123",
"template_name": "template_name_example",
"quality": "",
"priority": "",
"variables": "",
"brand_kit_id": ""
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_id",
"template_name"
],
"properties": {
"quality": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved render quality mode, normally draft or final."
},
"asset_id": {
"type": "string",
"description": "Stable ID of one staged FFmpeg media asset."
},
"priority": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional queue priority configured by the server, such as urgent or batch."
},
"variables": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Template variables accepted by the selected approved template."
},
"brand_kit_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Existing local brand-kit identifier."
},
"template_name": {
"type": "string",
"description": "Exact approved render-template name."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"job_id",
"cache_hit"
],
"properties": {
"job_id": {
"type": "string",
"description": "Stable ID used with the job readback tools."
},
"cache_hit": {
"type": "boolean",
"description": "Whether a matching completed result was reused."
},
"output_asset_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Completed output asset IDs when immediately available from cache."
}
},
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ffmpeg-template-apply-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.template_apply",
"arguments": {
"asset_id": "asset_id_123",
"template_name": "template_name_example",
"quality": "",
"priority": "",
"variables": "",
"brand_kit_id": ""
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ffmpeg.template_apply executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}