Render a social image
render_imageFill a template's slots and get back a finished PNG. Text shrinks to fit its box. Image slots take an https PNG, JPG or GIF URL under 4 MB. Leave a slot out to keep its sample. Costs 1 credit.
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": "render_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Template id from list_templates, like 'og-image'. | |
| modifications | No | Keyed by slot name. A value is a string, or an object like {"text": "...", "color": "#fff"} or {"image_url": "https://..."}. |