Create PDF
create_pdfGenerate a PDF from a Bannerify template and return a link to the stored file. Pass layer overrides in modifications.
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": {
"templateId": "<templateId>"
},
"name": "create_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | The template id, for example tpl_abc123 | |
| modifications | No | Layer overrides keyed by layer name. A string replaces the layer text, e.g. {"headline":"Summer sale"}. An object sets layer specific fields, e.g. {"photo":{"src":"https://example.com/a.png"}}, {"qr":{"qrcode":"https://example.com"}}, {"table":{"rows":[["A","B"]]}}, {"tag":{"visible":false}}. |