generate_pdf
Create professional PDFs from a declarative JSON AST and save them to disk, with theme, metadata, and output path control—no HTML, CSS, or executable code.
Instructions
Genera un PDF profesional a partir de un AST JSON declarativo y lo guarda en disco. Sin outputDir usa la carpeta de salida del workspace; outputDir acepta rutas relativas al workspace (p. ej. "reports/2026") o absolutas dentro de las carpetas permitidas. Devuelve path absoluto, relativePath, páginas, tamaño y warnings. No acepta HTML, CSS, JavaScript ni código ejecutable.
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": {
"filename": "<filename>",
"content": "<content>"
},
"name": "generate_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | ||
| content | Yes | ||
| filename | Yes | ||
| metadata | No | ||
| settings | No | ||
| outputDir | No | ||
| overwrite | No | ||
| fixedFooter | No | ||
| fixedHeader | No |