file_convert
File converter. Use when a task has a file in one format and needs it in another: a Word document (.docx) to HTML, Markdown or plain text; HTML to Markdown or plain text; Markdown to HTML; CSV to JSON; JSON to CSV; or CSV and TSV either way. Send the file as a URL or base64, or paste the text. Input is capped at 6 MB, or 1 MB when the target is Markdown, and nothing is stored. Cost: 1 credit per call.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "file_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The output format. Supported pairs are returned on every response and on an unsupported_conversion error. | |
| url | No | A public http(s) URL to read the document from. | |
| from | Yes | The input format: docx, html, markdown, csv, json or tsv. | |
| text | No | The document as text. Not accepted for docx, which is binary. | |
| file_base64 | No | The document as base64. Exactly one of text, url or file_base64. |