GenOffice docx watermark
genoffice_docx_watermarkSet a text watermark on .docx files: the header is regenerated while body bytes stay unchanged, writing a new file without touching the original. Pass an empty string to remove the watermark.
Instructions
Set a text watermark on a .docx using the GenOffice engine: the header part is regenerated with the watermark paragraph while the document body keeps its original bytes (byte-preserving roundtrip). Pass an empty string to remove the watermark. Writes a NEW file, never modifies the original.
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": {
"path": "<path>",
"text": "<text>"
},
"name": "genoffice_docx_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source .docx (never modified) | |
| text | Yes | Watermark text ("" removes the watermark) | |
| outPath | No | Absolute output path; defaults to <dir>/<name>.watermarked.docx |