All 26 tools are available on both STDIO and HTTP transports. Every tool returns a JSON response with a success boolean and either the result data or an error message.
Tool
Purpose
onlyoffice_generate_document
Generate a document from a template
onlyoffice_batch_generate
Generate multiple documents in parallel
onlyoffice_list_templates
List available templates with metadata
onlyoffice_validate_data
Validate data against a template schema
onlyoffice_modify_document
Modify a document via data regeneration
onlyoffice_get_template_schema
Get the JSON Schema for a template
onlyoffice_get_metadata
Extract metadata from a document
onlyoffice_set_metadata
Modify metadata in a document
onlyoffice_merge_documents
Merge multiple PDF documents into one
onlyoffice_split_document
Split a PDF into multiple parts
See also: Templates Reference , Metadata Tools
Tool
Purpose
onlyoffice_extract_content
Extract text, tables, and images (all at once)
onlyoffice_extract_text
Extract text content only
onlyoffice_extract_tables
Extract structured table data
onlyoffice_extract_images
Extract embedded images
Tool
Purpose
onlyoffice_add_watermark
Add text or image watermark to PDF/DOCX
Tool
Purpose
onlyoffice_storage_read
Read a file from a storage provider
onlyoffice_storage_write
Write a file to a storage provider
onlyoffice_storage_list
List files in a directory
onlyoffice_storage_delete
Delete a file
onlyoffice_storage_exists
Check if a file exists
Tool
Purpose
onlyoffice_list_instances
List OnlyOffice instances with optional health check
Tool
Purpose
onlyoffice_credential_store
Store new encrypted credentials
onlyoffice_credential_get
Retrieve credentials by ID
onlyoffice_credential_update
Update existing credentials
onlyoffice_credential_delete
Delete stored credentials
onlyoffice_credential_list
List stored credential metadata
Generate a document (DOCX, PPTX, XLSX, PDF) from a template with provided data.
Parameter
Type
Required
Description
template
string
Yes
Template identifier (e.g., "stellenbeschreibung")
format
enum
Yes
"docx", "pdf", "pptx", "xlsx"
data
object
Yes
Template-specific data object
outputFilename
string
No
Custom filename (default: auto-generated)
version
string
No
Template version (default: latest)
deliveryMethod
enum
No
"url" or "base64" (default depends on transport)
instanceId
string
No
OnlyOffice instance ID (multi-tenant)
"template" : " stellenbeschreibung " ,
"Positionstitel" : " Software Engineer " ,
"Abteilung" : " Development " ,
"Arbeitsverhaeltnis" : " Vollzeit " ,
"Stellenziel" : " Develop and maintain software applications " ,
"Hauptaufgaben" : [ " Code development " , " Code review " ],
"Nebenaufgaben" : [ " Documentation " ]
"template" : " stellenbeschreibung " ,
"data" : " UEsDBBQAAAAIAA... " ,
"mimeType" : " application/vnd.openxmlformats-officedocument.wordprocessingml.document " ,
"filename" : " stellenbeschreibung.docx " ,
Files exceeding 10 MB are not base64-encoded. Check the truncated field.
Template
DOCX
PDF
PPTX
XLSX
stellenbeschreibung
Yes
Yes
dienstliches_schreiben
Yes
Yes
beschlussvorlage
Yes
Yes
praesentation
Yes
Yes
bericht
Yes
Yes
List available templates with metadata, categories, and tags.
Parameter
Type
Required
Description
category
string
No
Filter by category (e.g., "hr")
tags
string[]
No
Filter by tags (e.g., ["german", "formal"])
"id" : " stellenbeschreibung " ,
"name" : " Stellenbeschreibung " ,
"tags" : [ " hr " , " job-description " , " german " , " formal " ]
Category
Description
hr
Human Resources documents
correspondence
Letters and official correspondence
government
Municipal and government documents
presentations
PPTX presentation templates
spreadsheets
XLSX report templates
Validate data against a template schema before generation.
Parameter
Type
Required
Description
template
string
Yes
Template identifier
data
object
Yes
Data to validate
version
string
No
Template version
includeSchema
boolean
No
Include full JSON Schema in response
"template" : " stellenbeschreibung " ,
"data" : { "Positionstitel" : " Software Engineer " },
"template" : " stellenbeschreibung " ,
"required" : [ " Positionstitel " , " Fachbereich " , " ... " ],
"optional" : [ " Anforderungsprofil " , " ... " ]
{ "field" : " Fachbereich " , "message" : " Required field is missing " , "code" : " REQUIRED " },
{ "field" : " Abteilung " , "message" : " Required field is missing " , "code" : " REQUIRED " }
Get the full JSON Schema for a template (types, formats, enums, required vs optional).
Parameter
Type
Required
Description
id
string
Yes
Template identifier
version
string
No
Template version (default: latest)
"id" : " stellenbeschreibung " ,
"name" : " Stellenbeschreibung " ,
"supportedFormats" : [ " docx " , " pdf " ],
"$schema" : " http://json-schema.org/draft-07/schema# " ,
"properties" : { "..." : " ... " },
"required" : [ " Positionstitel " , " Fachbereich " , " ... " ]
Generate multiple documents in parallel.
Parameter
Type
Required
Description
requests
array
Yes
Array of generation requests (1-50)
concurrency
number
No
Max parallel generations (1-10, default: 3)
stopOnError
boolean
No
Stop on first error (default: false)
Each request supports: template, format, data, outputFilename, version.
Returns an array of results (same format as generate_document for each).
Modify an existing document by merging new data into the original and regenerating.
Parameter
Type
Required
Description
template
string
Yes
Template identifier
originalData
object
Yes
Original data used to create the document
modifications
object
Yes
Changes to apply (deep-merged)
format
enum
Yes
Output format: "docx", "pdf", "pptx", "xlsx"
outputFilename
string
No
Custom filename
version
string
No
Template version (default: latest)
deliveryMethod
enum
No
"url" or "base64" (transport-dependent)
instanceId
string
No
OnlyOffice instance ID (multi-tenant)
Add a text or image watermark to a PDF or DOCX document.
Parameter
Type
Required
Description
content
string
Yes
Base64-encoded document
format
enum
Yes
"pdf" or "docx"
text
string
No
Watermark text
imageData
string
No
Base64 image (PDF only)
position
enum
No
"diagonal", "center", "top-left", etc.
opacity
number
No
0.0 to 1.0 (default: 0.3)
Extract text, tables, and images from a PDF or DOCX document in one call.
Parameter
Type
Required
Description
content
string
Yes
Base64-encoded document content
format
enum
Yes
"pdf" or "docx"
extractionType
enum
No
"text", "tables", "images", or "all" (default: "all")
"text" : " Full text content... " ,
"tables" : [{ "headers" : [ " ... " ], "rows" : [[ " ... " ]] }],
"images" : [{ "data" : " base64... " , "mimeType" : " image/png " }],
"metadata" : { "pageCount" : 5 , "wordCount" : 1234 }
onlyoffice_extract_text, onlyoffice_extract_tables, and onlyoffice_extract_images are
single-purpose variants that accept the same content + format parameters but return only
the requested type.
Merge multiple PDF documents into one. Accepts an array of PDF sources (base64, path, or URL).
Split a PDF by page ranges or into equal parts.
Code
Description
TEMPLATE_ERROR
Template not found, version not available, or registry error
VALIDATION_ERROR
Data failed schema validation
EXECUTION_FAILED
DocBuilder script execution failed
CONTAINER_NOT_RUNNING
Docker container not running or unreachable
TIMEOUT
Execution exceeded timeout limit