code_image
Transform a code snippet into a syntax-highlighted PNG in a macOS-style window card, ready for documentation and social media. Set theme, language, and title to control the visual result.
Instructions
Turn a code snippet into a beautiful syntax-highlighted PNG (macOS-style window card). Great for sharing code on social media or docs.
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": {
"code": "<code>"
},
"name": "code_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet to render | |
| theme | No | Card theme, default dark | |
| title | No | Filename shown in the window title bar | |
| language | No | Language for highlighting, e.g. javascript, python, go |