Skip to content

MCP tools

video-download

Fetches a video from YouTube, Instagram, X or TikTok at the quality you pick, keeps the audio only if you prefer, and can split it into short clips.

Behaviour#

What the tool needs and what it does. The server converts nothing itself: it calls the API for you.

PropertyValue
Abilityvideo:download
RunsPOST /api/v1/tools/video-download, then downloads the result
CLIvukem-tools video download
ReadsNothing from disk: the source is a URL in the options
Writesoutput

Input#

ArgumentTypeRequiredNotes
outputstringyesWhere to write the result: a file path, or a directory for a tool that yields several files. The result is downloaded at once because it expires in minutes.
optionsobjectnoWhat to download and how.
idempotency_keystringnoUp to 128 characters. Repeat a call safely: the same key returns the same conversion.

An argument that is not in the tool's schema is refused with invalid_input.

Options#

NameTypeRequiredDescription
options.clip_secondsintegernoClip length in seconds, 1 to 60. Default 60. min 0; max 60
options.clipsbooleannoSplit the result into consecutive clips, delivered individually and as a zip
options.compressbooleannoCompress afterwards and keep whichever file is smaller
options.kindstringnoVideo keeps the picture, audio gives MP3. Default video. max length 8
options.qualitystringnoBest or smallest. Default best. max length 16
options.urlstringyesA YouTube, Instagram, X or TikTok URL. min length 1; max length 2048

Output#

A call that works returns isError: false, the result as JSON text in content, and the same result as an object in structuredContent.

MemberTypeAlways presentNotes
toolstringyesThe tool that ran.
conversion_idstringyesThe conversion on the server.
statusstringyesfinished.
outputsarray of objectyesOne entry for each file written: path, name, mime (when known) and size_bytes.
bytes_inintegernoBytes uploaded.
bytes_outintegernoBytes written.
notestringnoWhat the conversion says about itself, when it has something to say.
expires_atstringnoWhen the server deletes its copy of the result.

Errors#

A failed call is not a protocol error: it returns isError: true and a code the agent can branch on. The ones this tool is likely to meet:

  • invalid_input: an argument is missing, unknown or out of range, or a file is not readable or is empty. Checked before anything is uploaded.
  • missing_key and unauthorized: VUKEM_TOOLS_API_KEY is not set, or the server refused it.
  • missing_ability: the key lacks video:download.
  • file_too_large, conversion_failed, timeout and result_expired: the server could not finish or the result was gone before it was downloaded.
  • rate_limited, network_error and io_error: a limit, the server could not be reached, or a file could not be read or written.

The full table, with retry and conversion_type, is in What a result looks like.

Safety#

The agent chooses the paths, and the process can read and write anything your user can. The result is written to a temporary file next to output and then renamed, so a failed download leaves no partial file. See What keeps an agent safe.

Example#

Ask the agent

Download a video: read the URL in the options and write out.mp4.

The call (tools/call)

JSON
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"video-download","arguments":{"output":"out.mp4","options":{"clip_seconds":60,"clips":false,"compress":false,"kind":"video","quality":"best","url":"https://example.com/video"}}}}

The result (result)

JSON
{"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{\"tool\":\"video-download\",\"conversion_id\":\"01JQ8Z5X0K7M3N9P2R4T6V8W0Y\",\"status\":\"finished\",\"outputs\":[{\"path\":\"out.mp4\",\"name\":\"out.mp4\",\"size_bytes\":1234}],\"bytes_in\":1500,\"bytes_out\":1234,\"expires_at\":\"2026-01-02T15:09:05Z\"}"}],"structuredContent":{"tool":"video-download","conversion_id":"01JQ8Z5X0K7M3N9P2R4T6V8W0Y","status":"finished","outputs":[{"path":"out.mp4","name":"out.mp4","size_bytes":1234}],"bytes_in":1500,"bytes_out":1234,"expires_at":"2026-01-02T15:09:05Z"},"isError":false}}

The values are illustrative: the names and the output path come from your call, the sizes and the id from the run. The member names are exact.

Next steps#