Print anything
printSend a file, URL, or text to a printer in one call with optional layout, color, and quality settings; track progress through job status after the first page starts.
Instructions
Print a file, URL or text right now. One call is enough; every setting is optional. Handles PDF, images, Word/Excel/PowerPoint, HTML, Markdown, CSV, text, XPS, EPUB, Thai included. Returns after the first page is on its way; check progress with job_status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Extra CSS for text, markdown or html | |
| dpi | No | Overrides the resolution chosen by quality | |
| font | No | Body font for text and markdown. Default handles Thai and English | |
| n_up | No | Pages per sheet | |
| align | No | ||
| color | No | auto (default) sends pages with no color as gray, saving color ink. black_white is pure 1-bit look | |
| gamma | No | 1 = unchanged | |
| pages | No | e.g. "1-3,5,last", "-2" (second to last), "10-8" (reversed) | |
| paper | No | A4, A5, A6, letter, legal, 4x6, 5x7, photo-l, DL, C5, or custom like "100x150mm", "4x6in". Default: what the printer has loaded. | |
| scale | No | fit (default) whole page; shrink only if too big; fill crop to cover; stretch ignore aspect; actual 100% | |
| copies | No | ||
| duplex | No | Two-sided: long = book, short = notepad | |
| footer | No | Same format as header, e.g. "|{page}/{pages}|" | |
| format | No | How to read content. Default auto | |
| header | No | Left|Center|Right. Tokens: {page} {pages} {date} {time} {name} | |
| invert | No | ||
| mirror | No | Horizontal flip, for iron-on transfers | |
| preset | No | Saved settings: document, draft, eco, sharp_text, photo, photo_borderless, booklet_2up, handout_4up, poster_vivid, scan_cleanup, or your own | |
| rotate | No | Extra clockwise rotation | |
| source | No | File path, http(s) URL, or data: URI | |
| backend | No | auto (default): direct network, else Windows driver | |
| collate | No | true 1,2,3,1,2,3 (default). false 1,1,2,2,3,3 | |
| content | No | Literal text, markdown or html to print, instead of source | |
| dry_run | No | Validate everything and report the plan; print nothing | |
| printer | No | Name, id, IP or alias, partial match works. Omit: the server picks. | |
| quality | No | ||
| reverse | No | Print last page first | |
| sharpen | No | ||
| wait_ms | No | Extra wait before capturing a web page | |
| contrast | No | -100 to 100 | |
| darkness | No | Ink density, -100 lighter to 100 darker | |
| job_name | No | ||
| page_set | No | ||
| password | No | For protected PDFs | |
| border_mm | No | Thickness of a printed frame around the content | |
| ink_saver | No | Percent lighter overall | |
| margin_mm | No | Blank margin on all sides | |
| threshold | No | Cutoff for black_white, default 128 | |
| watermark | No | Text across each sheet | |
| borderless | No | Edge to edge, if the printer supports it | |
| brightness | No | -100 to 100 | |
| javascript | No | Run page scripts. Default: on for URLs and html files, off for inline content | |
| paper_type | No | plain, inkjet, photo, glossy, or a printer keyword | |
| saturation | No | -100 gray to 100 vivid | |
| line_height | No | ||
| n_up_gap_mm | No | Gap between pages on a sheet | |
| orientation | No | ||
| output_file | No | Target path for virtual queues such as Microsoft Print to PDF | |
| border_color | No | #rrggbb or a name: black, red, blue, gray... | |
| border_style | No | ||
| font_size_pt | No | ||
| line_numbers | No | For text sources | |
| overlay_font | No | Font for header, footer, watermark | |
| paper_source | No | Tray: auto, main, manual, or a name from printer_status | |
| allow_network | No | Fetch remote resources. Same defaults as javascript | |
| border_gap_mm | No | Space between frame and content | |
| confirm_large | No | Needed above the safety limit (50 sheets by default) | |
| margin_top_mm | No | Top margin | |
| overlay_color | No | ||
| scale_percent | No | Exact zoom, overrides scale | |
| cell_border_mm | No | Frame around each page in n-up | |
| margin_left_mm | No | Left margin | |
| allow_duplicate | No | The same print within 20 s is treated as an accidental retry unless this is true | |
| margin_right_mm | No | Right margin | |
| overlay_size_pt | No | ||
| watermark_angle | No | Default -45 | |
| watermark_color | No | ||
| margin_bottom_mm | No | Bottom margin | |
| print_background | No | Web page backgrounds, default true | |
| watermark_opacity | No | Percent, default 15 | |
| watermark_size_pt | No | ||
| wait_for_completion | No | Block until the printer finishes | |
| allow_private_network | No | Required to print a URL on this LAN or PC (router, intranet, localhost) or a \\server\share path. Off by default so a page or link cannot reach internal systems |