Design
Añade marcas de agua en mosaico a imágenes con tamaño, opacidad, espaciado y patrones personalizables
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-watermark-tile' \
-F 'file=@/path/to/imageFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/image-watermark-tile' \
-F 'file=@/path/to/watermarkImageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/image-watermark-tile' \
-F 'imageFile=/path/to/file.ext' \
-F 'watermarkImageFile=/path/to/file.ext' \
-F 'tileSize=0.15' \
-F 'opacity=0.3' \
-F 'rotation=0' \
-F 'horizontalSpacing=50' \
-F 'verticalSpacing=50' \
-F 'tilePattern=grid' \
-F 'staggeredRows=false' \
-F 'margin=20' \
-F 'blendMode=over'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-watermark-tile| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| imageFile | filesubida requerida | Sí | — |
| watermarkImageFile | filesubida requerida | Sí | — |
| tileSize | number | No | — |
| opacity | number | No | — |
| rotation | number | No | — |
| horizontalSpacing | number | No | — |
| verticalSpacing | number | No | — |
| tilePattern | select | Sí | — |
| staggeredRows | checkbox | No | — |
| margin | number | No | — |
| blendMode | 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-image-watermark-tile": {
"name": "image-watermark-tile",
"description": "Añade marcas de agua en mosaico a imágenes con tamaño, opacidad, espaciado y patrones personalizables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-watermark-tile",
"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-watermark-tile",
"arguments": {
"imageFile": "https://example.com/file.ext",
"watermarkImageFile": "https://example.com/file.ext",
"tileSize": 0.15,
"opacity": 0.3,
"rotation": 0,
"horizontalSpacing": 50,
"verticalSpacing": 50,
"tilePattern": "grid",
"staggeredRows": false,
"margin": 20,
"blendMode": "over"
}
}
}¿Dudas o problemas? Contacta con [email protected]