merge_text_documents
Combine multiple text documents into one file with custom separators between content sections using the LibreOffice MCP Server.
Instructions
Merge multiple text documents into a single document
Args:
document_paths: List of paths to documents to merge
output_path: Path where merged document should be saved
separator: Text to insert between merged documents
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": {
"document_paths": "<document_paths>",
"output_path": "<output_path>"
},
"name": "merge_text_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_paths | Yes | ||
| output_path | Yes | ||
| separator | No | --- |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the document | |
| exists | Yes | Whether the file exists | |
| format | Yes | Document format (odt, ods, odp, etc.) | |
| filename | Yes | Document filename | |
| size_bytes | Yes | File size in bytes | |
| modified_time | Yes | Last modification time |