Media
Découpe la vidéo aux horodatages spécifiés
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-split-at-timestamps' \
-F 'file=@/path/to/videoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/video-split-at-timestamps' \
-F 'videoFile=/path/to/file.ext' \
-F 'timestamps=e.g., 00:00:10,00:00:30,00:01:00'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/video-split-at-timestamps| Nom | Type | Requis | Description |
|---|---|---|---|
| videoFile | fileupload requis | Oui | — |
| timestamps | text | Oui | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-video-split-at-timestamps": {
"name": "video-split-at-timestamps",
"description": "Découpe la vidéo aux horodatages spécifiés",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-split-at-timestamps",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-split-at-timestamps",
"arguments": {
"videoFile": "https://example.com/file.ext",
"timestamps": "e.g., 00:00:10,00:00:30,00:01:00"
}
}
}Des questions ou un problème ? Contactez [email protected]