Design
Rotar imágenes por cualquier ángulo arbitrario con opciones para color de fondo y formato de salida
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/image-rotate-arbitrary' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/image-rotate-arbitrary' \
-F 'imageFile=/path/to/file.ext' \
-F 'angle=45' \
-F 'backgroundColor=Selecciona el color de fondo para rotación...' \
-F 'outputFormat=original' \
-F 'quality=90'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/image-rotate-arbitrary| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| imageFile | filesubida requerida | Sí | Upload any image file (JPEG, PNG, WebP, TIFF, GIF, BMP) for arbitrary angle rotation |
| angle | number | Sí | Ángulo para rotar la imagen. Los valores positivos rotan en sentido horario, los negativos en sentido antihorario. |
| backgroundColor | color | No | Color de fondo a usar al rotar (para formatos sin transparencia). Predeterminado: blanco para JPEG, transparente para PNG/WebP |
| outputFormat | select | No | Elegir formato de salida o mantener original |
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-image-rotate-arbitrary": {
"name": "image-rotate-arbitrary",
"description": "Rotar imágenes por cualquier ángulo arbitrario con opciones para color de fondo y formato de salida",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-rotate-arbitrary",
"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": "image-rotate-arbitrary",
"arguments": {
"imageFile": "https://example.com/file.ext",
"angle": 45,
"backgroundColor": "Selecciona el color de fondo para rotación...",
"outputFormat": "original",
"quality": 90
}
}
}| quality | number | No | Calidad de salida para formatos con pérdida (JPEG, WebP). Mayor = mejor calidad pero archivo más grande |
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)"
}¿Dudas o problemas? Contacta con [email protected]