render_template
Apply saved QR code style presets to new content, using template IDs to maintain brand consistency while allowing optional style overrides for customization.
Instructions
Generate a QR code by applying a saved style preset to new content. Looks up the template by ID, merges any provided overrides on top of the stored style options, then renders the QR code. Returns a public image URL and, for PNG output, an inline base64 image. Use this instead of generate_qr when the user has a saved brand style they want to reuse — avoids re-specifying all style options each time. Use overrides to tweak individual properties (e.g. foreground color) without changing the saved preset.
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>",
"content": "<content>"
},
"name": "render_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | ID of the template to render | |
| content | Yes | Data to encode in the QR code (URL, text, etc.) | |
| format | No | Output format. Default: png. | |
| overrides | No | Optional style overrides to apply on top of the template |