Media
Video auf angegebene Größe und Position zuschneiden
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-crop' \
-F 'file=@/path/to/videoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/video-crop' \
-F 'videoFile=/path/to/file.ext' \
-F 'width=0' \
-F 'height=0' \
-F 'x=0' \
-F 'y=0' \
-F 'outputFormat=mp4'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/video-crop| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| videoFile | fileUpload nötig | Ja | — |
| width | number | Nein | — |
| height | number | Nein | — |
| x | number | Nein | — |
| y | number | Nein | — |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-video-crop": {
"name": "video-crop",
"description": "Video auf angegebene Größe und Position zuschneiden",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-crop",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-crop",
"arguments": {
"videoFile": "https://example.com/file.ext",
"width": 0,
"height": 0,
"x": 0,
"y": 0,
"outputFormat": "mp4"
}
}
}| outputFormat |
| select |
| Nein |
| — |
Dateiergebnis
{
"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)"
}Fragen oder Probleme? Kontakt: [email protected]