render_text
Render text to PNG using HarfBuzz, supporting variable font axes, kerning, and size options.
Instructions
Compile the revision, shape with HarfBuzz and return FreeType PNGs. For variable fonts, location maps axis tags to values; omitted axes use defaults. Missing Unicode is reported. Optional same-conditions revision comparison.
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": {
"project_id": "<project_id>",
"text": "<text>"
},
"name": "render_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dark | No | ||
| kern | No | ||
| text | Yes | ||
| sizes | No | ||
| width | No | ||
| detail | No | summary | |
| location | No | ||
| revision | No | ||
| image_mode | No | inline | |
| project_id | Yes | ||
| compare_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| changed | No | ||
| summary | Yes | ||
| revision | No | ||
| warnings | No | ||
| project_id | No |