Create a PDF
create_pdfTurn Markdown or HTML you write into a well-set PDF: a report, invoice, letter, resume or plain document. Tables, headings, lists, images by URL and page breaks work; header, footer and page numbers are optional. For an invoice, resume or letter, prefer data (the fields, with template set to match): it is laid out properly, and an invoice is added up for you (leave out amounts, subtotal, tax or total to have them worked out; give them and they are checked). extract_data's invoice result can be passed as data as it is. Use it whenever the person wants a document they can download, print or send.
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": "create_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Instead of markdown/html: the fields of an invoice, resume or letter (set template to match). We lay it out; for an invoice we also add up the lines, tax and total and report anything that doesn't add up. | |
| html | No | ||
| style | No | quiet (default): modern sans, gray labels. classic: serif, fine rules, centered heads; suits letters and traditional CVs. | |
| title | No | Also the file name. | |
| footer | No | ||
| header | No | ||
| margin | No | ||
| markdown | No | ||
| template | No | ||
| page_size | No | ||
| page_numbers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| files | Yes | ||
| steps | Yes | ||
| job_id | Yes | ||
| status | Yes | ||
| credits | Yes | ||
| message | Yes |