generate_from_template
Generate a personalized video by providing custom values for a template's variables.
Instructions
Generate a HeyGen video from a template with custom variable values.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_id": "<template_id>",
"variables": "<variables>"
},
"name": "generate_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title for the generated video. | |
| test_mode | No | If true, generates a watermarked preview. | |
| variables | Yes | Object mapping variable names to values with type and properties. | |
| template_id | Yes | Template ID from list_templates. |