print_file_data
Prints a tiny file supplied as base64—such as PDF, image, PostScript, or plain text—using specified CUPS options like copies, duplex, page ranges, paper, quality, and scaling.
Instructions
Print a small file sent as base64 (only for tiny files: every byte costs tokens). Prefer get_upload_link + print_file for files, or print_text for plain text. Prints PDF, PostScript, PNG, JPEG, TIFF or plain text. Print options (all optional): copies, duplex, page_ranges ("1-3,5"), paper, quality, printer; scaling: auto (shrink only if too big), fit (fit the page, keep proportions), fill (fill the page, crop overflow), none (actual size). Usually fit for photos and screenshots, and left unset (printer default) for documents; ppi: override an image's resolution; options: other CUPS options such as {"InputSlot": "Manual", "number-up": "2"}; printer_options lists what the printer accepts.
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": {
"data_base64": "<data_base64>"
},
"name": "print_file_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppi | No | ||
| paper | No | ||
| copies | No | ||
| duplex | No | ||
| options | No | ||
| printer | No | ||
| quality | No | ||
| scaling | No | ||
| filename | No | document.pdf | |
| data_base64 | Yes | ||
| page_ranges | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |