file_convert
Convert a server file to another format such as PDF, DOCX, XLSX, or PNG; the queued conversion saves the new file beside the original under a free name.
Instructions
Convert a file to another format (target: pdf, docx, xlsx, png, …) on the server with the Convert app - the explorer's Convert… action. Needs the Convert app installed by an administrator (else NOT_FOUND). The converted file lands beside the original under a free name. It answers 202 with the queued operation ({op: {id, …}}): follow it with op_get {id} until its status is ok (or partial, failed, cancelled), stop it with op_cancel.
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>",
"target": "<target>"
},
"name": "file_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | adapter:// path of the file to convert | |
| target | Yes | the format to convert to, as an extension: pdf, docx, xlsx, png, … |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the operation's JSON answer - the body its REST twin under /api/ai answers (an object) | |
| status | Yes |