Create custom document
createCustomDocumentCreates a freeform document (e.g. Leistungsverzeichnis, checklist, timesheet, short report) as a PDF and returns a one-time download link. By default the PDF carries the company letterhead; with documentData.noLetterhead set to true it is a neutral document without company data.
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": {
"documentData": "<documentData>"
},
"name": "createCustomDocument"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentData | Yes | Document object: { title, subtitle?, letterText?, customerName?, customerCompany?, noLetterhead?: boolean, format?: "pdf" | "txt" | "md", blocks: [...] }. Block types: { type: "heading", text, level?: 1 | 2 }, { type: "paragraph", text }, { type: "table", columns: ["Col A", "Col B"], rows: [["a1", "b1"], ["a2", "b2"]], legend? }, { type: "divider" }. At least one block. Example: { title: "Checkliste Baustelle", blocks: [{ type: "heading", text: "Vor Ort" }, { type: "paragraph", text: "Wasser abstellen, Boden abdecken." }] }. |