Skip to main content

last_frame

ffmpeg

Extract the picture from the END of a video as an image — the very last frame, or a chosen number of seconds before the end.

When to use
Making a closing thumbnail, checking how a render finished, or grabbing the final state of a screen recording.
Not for
A frame from the middle or the start (ffmpeg_command with -ss). A moving preview (trim_video).
Returns
A signed download URL for the extracted image.

Parameters

NameTypeRequiredDescription
file_urlstringnoPublic http(s) URL of the input file (preferred — fetched server-side, so the bytes never pass through your context). Private, loopback and cloud-metadata addresses are blocked.
file_base64stringnoBase64 of a small inline input file (up to about 15MB). Provide "filename" too.
filenamestringnoOriginal filename including its extension, e.g. "report.pdf". The extension is how the source format is detected.
offsetnumbernoSeconds BEFORE the end to capture. 0 (the default) is the very last frame.
formatstringnoImage format of the extracted frame. (png, jpg, webp)
qualityintegerno1-100, jpg/webp only. Default 92.
widthintegernoOptional downscale width in pixels. The frame is never enlarged.

Example call

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

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

Connect first

curl -sN https://convertfleet.com/api/mcp \
  -H "Authorization: Bearer flt_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

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