post_og_card
Social card generator: POST {title, subtitle, domain, theme, accent} and receive a finished 1200x630 OpenGraph card — PNG (base64) plus the source SVG. Three themes (dark, light, midnight), custom accent color, automatic text wrapping. Pairs with /api/og/check: check the page, then generate the missing card. ($0.02 per call, paid via x402)
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": {
"title": "<title>"
},
"name": "post_og_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | dark (default), light, or midnight | |
| title | Yes | Card headline (required, wraps to 3 lines, max 140 chars) | |
| accent | No | Hex accent color override, e.g. #ff6b35 | |
| domain | No | Shown bottom-left in accent color (optional) | |
| subtitle | No | Smaller supporting line (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | ||
| width | No | ||
| height | No | ||
| data_uri | No | ||
| png_base64 | No |