Upload a file you hold locally
upload_fileUploads file bytes (base64) into FileConvert and returns a 'file_id'. Use this when the file is not reachable by URL, then call start_conversion(file_id, source_format, target_format). For files reachable over http(s), convert_file is a single call instead.
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": {
"filename": "<filename>",
"content_base64": "<content_base64>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name with extension, e.g. 'report.docx'. The extension helps the converter detect the format. | |
| content_base64 | Yes | The file bytes encoded as base64 (standard or URL-safe alphabet, padding optional). Up to 25 MiB decoded; larger files should be given to convert_file by URL. |