apply_template
Applies parameter values to a workflow template and returns executable or save-ready workflow JSON. Use it after building a template to populate prompts, seeds, and other settings.
Instructions
Apply parameter values to a workflow template. Returns workflow JSON ready to execute or save. Use create_template to build a template, then apply_template with 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": "<template>",
"values": "<values>"
},
"name": "apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Parameter values (e.g. { prompt: "a cat", seed: 42 }) | |
| template | Yes | Template JSON string (from create_template) |