Video Processing
Generate a preview video by evenly sampling clips from source video and concatenating them
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-preview-generator' \
-F 'file=@/path/to/videoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/video-preview-generator' \
-F 'videoFile=/public/samples/video/earth_1080p_horizontal.mp4' \
-F 'totalPreviewSeconds=6' \
-F 'clipDurationSeconds=2' \
-F 'removeAudio=false'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/video-preview-generator| Name | Type | Required | Description |
|---|---|---|---|
| videoFile | fileupload required | Yes | — |
| totalPreviewSeconds | number | No | — |
| clipDurationSeconds | number | No | — |
| removeAudio | checkbox | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-video-preview-generator": {
"name": "video-preview-generator",
"description": "Generate a preview video by evenly sampling clips from source video and concatenating them",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-preview-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-preview-generator",
"arguments": {
"videoFile": "/public/samples/video/earth_1080p_horizontal.mp4",
"totalPreviewSeconds": 6,
"clipDurationSeconds": 2,
"removeAudio": false
}
}
}File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]