compile_presentation
Convert an in-memory presentation to PDF or PPTX, writing directly to an output path. Supports Beamer themes, highlight styles, and PPTX templates.
Instructions
Compile the in-memory presentation to PDF or PPTX, writing directly to output_path (absolute). Call render_slides_as_pngs afterwards to validate visually.
format : 'pdf' (Beamer/lualatex) or 'pptx' (PowerPoint). theme : any Beamer theme name installed on this system (PDF only), default 'moloch'. highlight_style : code highlight style, default 'tango'. reference_doc : path to a .pptx template (PPTX only, optional).
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": {
"presentation_id": "<presentation_id>",
"output_path": "<output_path>",
"format": "<format>"
},
"name": "compile_presentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | moloch | |
| format | Yes | ||
| output_path | Yes | ||
| reference_doc | No | ||
| highlight_style | No | tango | |
| presentation_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||