Convert Document
convert_documentConverts PDF, DOCX, XLSX, or CSV files to a chosen target format and writes the new file to an allowed output directory.
Instructions
Membaca PDF/DOCX/XLSX/CSV lalu menulis versi baru dalam format target (pdf/docx/xlsx/csv) ke ALLOWED_OUTPUT_DIRS. Konversi berbasis teks; format kaya tidak dipertahankan.
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": {
"sourcePath": "<sourcePath>",
"fileName": "<fileName>",
"targetFormat": "<targetFormat>"
},
"name": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | Nama file tujuan (basename saja) di dalam ALLOWED_OUTPUT_DIRS. | |
| overwrite | No | ||
| sheetName | No | ||
| sourcePath | Yes | Absolute path file di dalam salah satu direktori ALLOWED_DIRS. | |
| targetFormat | Yes |