Skip to main content

compress_file

compress

Reduce a file's size while keeping its format and reasonable quality. Best for images (png/jpg/jpeg/webp/gif) and media (mp4/mp3/wav) — the file is re-encoded at a smaller size. Provide file_url or file_base64 + filename.

Parameters

NameTypeRequiredDescription
file_urlstringnoPublic http(s) URL of the input file (preferred).
file_base64stringnoBase64 of a small inline input file (<=15MB). Provide 'filename'.
filenamestringnoOriginal filename incl. extension (its extension is kept as the output format), e.g. 'photo.jpg'.
mime_typestringnoOptional MIME type of the input.

Example call

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

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

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.