attach_template_asset
Bind a named image to a template. Required: template_id (or key), name (the placeholder, e.g. LOGO_B64), document_id (a file already uploaded via upload_document / create_document_upload_url). The NAME is the interface, not the storage path — so the file behind it can be replaced without touching the template.
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": {
"name": "<name>",
"document_id": "<document_id>"
},
"name": "attach_template_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Template key, alternative to template_id | |
| name | Yes | Placeholder name the image is bound to in the template, e.g. LOGO_B64 | |
| document_id | Yes | ID of the document | |
| template_id | No | ID of the template |