compose_document
Assemble multi-part documents from HTML or Markdown sections, add watermarks, and export as PDF, DOCX, or ODT.
Instructions
Compose a multi-part document from several sections.
Each part is a dict with: htmlContent, markdownContent, templateName, fields.
Args: parts: List of document parts. Each part can have htmlContent, markdownContent, templateName, fields. watermark: Optional diagonal watermark text overlay. output_format: Output format – PDF, DOCX, or ODT (default: PDF).
Returns: Base64-encoded document bytes.
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": {
"parts": "<parts>"
},
"name": "compose_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | Yes | ||
| watermark | No | ||
| output_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |