Export a PDF
compile_pdfCompile a PDF with the Rust compiler. Supply exactly one of document or markdown. The document needs a title and at least one author. Returns the PDF as a base64 application/pdf resource.
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": "compile_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Extra template metadata, such as {country} for ACM. | |
| document | No | The Publisle document: an object with schemaVersion and blocks, as returned by the other tools. | |
| markdown | No | ||
| template | No | A template id from list_templates. Defaults to article. |