generate_pdf
Generate a PDF from a custom PdfDocument JSON descriptor for layouts like resumes, contracts, certificates, or presentations. Returns base64-encoded PDF bytes.
Instructions
Generate a PDF from a custom PdfDocument JSON descriptor. Use this for any layout not covered by generate_invoice or generate_report — e.g. resumes, contracts, certificates, presentations, or any multi-element composition. Returns base64-encoded PDF bytes. Call list_element_types first to see available elements and options.
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": {
"document": "<document>"
},
"name": "generate_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | A PdfDocument config object. Call list_element_types first to see available element shapes for the content array. | |
| filename | No | Suggested filename (without .pdf extension) | document |