print_file
Prints a file uploaded via get_upload_link using its ID, with optional copies, duplex, page ranges, paper, scaling, and printer settings; deletes the upload after printing unless kept.
Instructions
Print a file uploaded with get_upload_link, by its id. The upload is deleted after printing unless keep=True (e.g. to print it again with different settings). 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": {
"id": "<id>"
},
"name": "print_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| ppi | No | ||
| keep | No | ||
| paper | No | ||
| copies | No | ||
| duplex | No | ||
| options | No | ||
| printer | No | ||
| quality | No | ||
| scaling | No | ||
| page_ranges | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |