putty
MCPMediaMedia

media_compose_graphic

Compose a graphic that has WORDS on it: render one of the four committed HTML layouts to PNG in a sandbox with headless Chromium, in the brand kit's real palette, fonts, and type scale. Use this for an Open Graph card (`og`, 1200×630), an X header (`x-header`, 1500×500), a square post (`post-square`, 1080×1080), or a portrait post (`post-portrait`, 1080×1350) — anything where misspelled text would be visible. Image models garble text, so a card with copy is never generated as an image; generate a text-free `background` with `media_generate_image` and pass its asset id as `backgroundAssetId`, or omit it to use the brand's background colour. Returns immediately with a signed URL into Putty's own storage; the provider's URL is never exposed. Costs 0 credits — the background, if you want one, is charged to its own asset.

Compose a graphic that has WORDS on it: render one of the four committed HTML layouts to PNG in a sandbox with headless Chromium, in the brand kit's real palette, fonts, and type scale.

Input

The tool takes a single JSON object. Every field, its type, and an example are on the generated reference at GET /mcp/tools, under this tool's name.

Calling it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "media_compose_graphic", "arguments": {} }
}

Put your arguments in place of the empty object. A call that fails comes back as a normal result carrying isError: true and a message naming what went wrong, not as a JSON-RPC protocol error.

Notes

Use this for an Open Graph card (og, 1200×630), an X header (x-header, 1500×500), a square post (post-square, 1080×1080), or a portrait post (post-portrait, 1080×1350) — anything where misspelled text would be visible. Image models garble text, so a card with copy is never generated as an image; generate a text-free background with media_generate_image and pass its asset id as backgroundAssetId, or omit it to use the brand's background colour. Returns immediately with a signed URL into Putty's own storage; the provider's URL is never exposed. Costs 0 credits — the background, if you want one, is charged to its own asset.

The full request and response shape, and a live playground, live on the generated reference at GET /mcp/tools.

On this page