compress_file
compressReduce 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
| Name | Type | Required | Description |
|---|---|---|---|
| file_url | string | no | Public http(s) URL of the input file (preferred). |
| file_base64 | string | no | Base64 of a small inline input file (<=15MB). Provide 'filename'. |
| filename | string | no | Original filename incl. extension (its extension is kept as the output format), e.g. 'photo.jpg'. |
| mime_type | string | no | Optional 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.