Fill a prompt template with variables
generate-promptFill a prompt template with supplied variables. Use {name} placeholders with matching vars.name; missing variables become empty text. Returns a prompt string without invoking a model; code/image modes can add framing.
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>"
},
"name": "generate-prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional deterministic seed for the {{RAND_INT:min,max}} helper, not ordinary placeholders. | |
| type | No | Prompt template category: text, code or image; default text. | |
| vars | No | Object mapping placeholder names to values, e.g. {"name":"Ada"} for {name}. | |
| template | Yes | Template text, e.g. Hello {name}; omitted variables are replaced with empty text. |