Print card
print_cardGenerate a shareable 1200x630 PNG summary card of sliced G-code with toolpath preview, time, filament, cost, layers, infill, walls, and printer details for quoting prints.
Instructions
Make a 1200x630 PNG summary card of a sliced print: toolpath preview, time, filament, cost, layers, infill, walls and printer.
Use it to share or quote a print; for inspecting toolpaths use preview_gcode. Writes _card.png next to the G-code, replacing an older one. Returns the image and its path.
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": {
"path": "<path>"
},
"name": "print_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .gcode file on this computer, e.g. one written by slice_model. | |
| title | No | Heading on the card. Default: the G-code file name. | |
| price_per_kg | No | Filament price per kg for the cost line. Default: the cost stored in the G-code. | |
| currency_symbol | No | Symbol shown before the cost, e.g. '$' or '€'. | $ |