batch_convert_documents
Convert multiple documents in a directory to a different format using LibreOffice, supporting batch processing of various file types.
Instructions
Convert multiple documents in a directory to a different format
Args:
source_dir: Directory containing source documents
target_dir: Directory where converted documents should be saved
target_format: Target format for conversion
source_extensions: List of source file extensions to convert (default: common formats)
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": {
"source_dir": "<source_dir>",
"target_dir": "<target_dir>",
"target_format": "<target_format>"
},
"name": "batch_convert_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_dir | Yes | ||
| target_dir | Yes | ||
| target_format | Yes | ||
| source_extensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |