Media
Ajustar el tiempo de retraso de fotogramas de imágenes GIF animadas para controlar velocidad y tiempo de reproducción
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/gif-to-delay-adjusted-gif' \
-F 'file=@/path/to/gifFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/gif-to-delay-adjusted-gif' \
-F 'gifFile=/path/to/file.ext' \
-F 'adjustmentMode=set-delay' \
-F 'newDelay=100' \
-F 'scaleFactor=1' \
-F 'totalDuration=10' \
-F 'frameCount=10' \
-F 'maintainFrameOrder=true' \
-F 'multiFrameHandling=preserve-animation'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/gif-to-delay-adjusted-gif| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| gifFile | filesubida requerida | Sí | — |
| adjustmentMode | select | No | — |
| newDelay | number | No | — |
| scaleFactor | number | No | — |
| totalDuration | number | No | — |
| frameCount | number | No | — |
| maintainFrameOrder | checkbox | No | — |
| multiFrameHandling | select | No | — |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-gif-to-delay-adjusted-gif": {
"name": "gif-to-delay-adjusted-gif",
"description": "Ajustar el tiempo de retraso de fotogramas de imágenes GIF animadas para controlar velocidad y tiempo de reproducción",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=gif-to-delay-adjusted-gif",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "gif-to-delay-adjusted-gif",
"arguments": {
"gifFile": "https://example.com/file.ext",
"adjustmentMode": "set-delay",
"newDelay": 100,
"scaleFactor": 1,
"totalDuration": 10,
"frameCount": 10,
"maintainFrameOrder": true,
"multiFrameHandling": "preserve-animation"
}
}
}¿Dudas o problemas? Contacta con [email protected]