Skip to main content

convert_file

convert

Convert a file between any of Convert Fleet's 178+ supported formats (documents, images, audio, video, e-books, archives, fonts, spreadsheets). Provide the input as a public file_url (preferred) or inline file_base64 + filename, and the target_format (e.g. 'pdf', 'mp3', 'docx', 'webp'). Returns a short-TTL signed download URL for the converted file. Use list_supported_formats first if unsure a target is valid.

Parameters

NameTypeRequiredDescription
file_urlstringnoPublic http(s) URL of the input file (preferred for agents). Internal/metadata IPs are blocked.
file_base64stringnoBase64 of the input file for small inline uploads (<=15MB). Provide 'filename' too. Use file_url for larger files.
filenamestringnoOriginal filename incl. extension (used to detect the source format), e.g. 'invoice.docx'.
mime_typestringnoOptional MIME type of the input.
target_formatstringyesTarget format extension, e.g. 'pdf', 'png', 'mp3', 'docx', 'webp'.
source_formatstringnoOptional explicit source format if it can't be inferred from the filename.
output_filenamestringnoOptional desired output filename.

Example call

JSON-RPC tools/call body (sent to https://convertfleet.com/api/mcp):

{
  "jsonrpc": "2.0", "id": 1, "method": "tools/call",
  "params": { "name": "convert_file", "arguments": {
               "file_url": "https://example.com/input",
               "target_format": "pdf"
             } }
}

Connect first

npx -y mcp-remote https://convertfleet.com/api/mcp --header "Authorization: Bearer flt_YOUR_KEY"

See the quickstarts for Claude, Cursor, Hermes, OpenClaw, n8n, Zapier and Make.