last_frame
ffmpegExtract 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
| Name | Type | Required | Description |
|---|---|---|---|
| file_url | string | no | Public 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_base64 | string | no | Base64 of a small inline input file (up to about 15MB). Provide "filename" too. |
| filename | string | no | Original filename including its extension, e.g. "report.pdf". The extension is how the source format is detected. |
| offset | number | no | Seconds BEFORE the end to capture. 0 (the default) is the very last frame. |
| format | string | no | Image format of the extracted frame. (png, jpg, webp) |
| quality | integer | no | 1-100, jpg/webp only. Default 92. |
| width | integer | no | Optional 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.