Apply Template
apply_templateGenerates a ready-to-use prompt by filling a named prompt template with a subject for image generation, editing, or analysis workflows.
Instructions
Apply a prompt template with a subject to generate a ready-to-use prompt.
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_name": "<template_name>",
"subject": "<subject>"
},
"name": "apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | The subject to fill into the template (e.g., 'wireless headphones', 'coffee shop') | |
| template_name | Yes | Name of the template (e.g., 'product_hero', 'instagram_post'). Use list_templates() to see all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||