Design
Ajusta los niveles de imagen con control preciso sobre sombras, tonos medios y luces para corrección tonal profesional
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-levels' \
-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-levels' \
-F 'imageFile=/path/to/file.ext' \
-F 'shadowInput=0' \
-F 'shadowOutput=0' \
-F 'midtoneInput=0.5' \
-F 'midtoneOutput=0.5' \
-F 'highlightInput=1' \
-F 'highlightOutput=1' \
-F 'format=original' \
-F 'quality=95'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-levels| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| imageFile | filesubida requerida | Sí | Sube cualquier archivo de imagen (JPEG, PNG, WebP, GIF, BMP, TIFF) para ajustar niveles |
| shadowInput | number | No | Shadow input level (0 = pure black, 1 = white). Maps input shadow levels to new values |
| shadowOutput | number | No | Shadow output level (0 = pure black, 1 = white). Sets the output for shadow areas |
| midtoneInput | number | No | Midtone input level (0 = pure black, 0.5 = middle gray, 1 = white). Controls tonal balance |
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-levels": {
"name": "image-levels",
"description": "Ajusta los niveles de imagen con control preciso sobre sombras, tonos medios y luces para corrección tonal profesional",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-levels",
"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-levels",
"arguments": {
"imageFile": "https://example.com/file.ext",
"shadowInput": 0,
"shadowOutput": 0,
"midtoneInput": 0.5,
"midtoneOutput": 0.5,
"highlightInput": 1,
"highlightOutput": 1,
"format": "original",
"quality": 95
}
}
}| midtoneOutput | number | No | Midtone output level (0 = pure black, 0.5 = middle gray, 1 = white). Adjusts overall brightness |
| highlightInput | number | No | Highlight input level (0 = pure black, 1 = white). Maps input highlight levels to new values |
| highlightOutput | number | No | Highlight output level (0 = pure black, 1 = white). Sets the output for highlight areas |
| format | select | No | Choose output format or keep original. PNG recommended for maximum quality |
| quality | number | No | Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size |
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]