Make a PDF
documents_create_pdfA PDF from Markdown or HTML, saved in the file store with a download link. Markdown gets a clean document style (headings, tables, lists); HTML is printed the way Chrome prints it, without running JavaScript. Images must be public https links or data: URLs. Give exactly one of markdown or html. Costs $0.005 per call; nothing if it fails.
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": {
"name": "<name>"
},
"name": "documents_create_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Extra CSS, e.g. a font size or a logo. | |
| html | No | ||
| name | Yes | Name for the new file, e.g. "Quote 1042.pdf". | |
| paper | No | a4 | |
| markdown | No | ||
| landscape | No | ||
| margin_mm | No | ||
| link_hours | No |