Print a document
print_documentTypesets Markdown text into a clean US Letter PDF and prints it. Physically prints paper on the user’s connected printer. Printers marked needsAttention are skipped by automatic printer selection. Supported Markdown: # headings, paragraphs, - bullets, 1. numbered lists, - [ ] checkboxes, > quotes, bold, italic, --- rules, | simple | tables |, and ______ blanks for worksheet answers. Greek and Hebrew characters are supported. dry_run returns the page count without printing.
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": {
"title": "<title>",
"markdown": "<markdown>"
},
"name": "print_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title; printed in the page footer. | |
| copies | No | ||
| dry_run | No | Lay out the document and report the page count without printing. | |
| markdown | Yes | The full document content in Markdown. | |
| printer_id | No | One of your printer ids; omit to use your default or only printer. | |
| allow_duplicate | No | Allow printing the exact same document again within 3 minutes. |