Design
Ajoutez des filigranes en mosaïque aux images avec taille, opacité, espacement et motifs personnalisables
Appelez cet outil depuis votre code en trois langages.
# 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/fr/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'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/image-watermark-tile| Nom | Type | Requis | Description |
|---|---|---|---|
| imageFile | fileupload requis | Oui | — |
| watermarkImageFile | fileupload requis | Oui | — |
| tileSize | number | Non | — |
| opacity | number | Non | — |
| rotation | number | Non | — |
| horizontalSpacing | number | Non | — |
| verticalSpacing | number | Non | — |
| tilePattern | select | Oui | — |
| staggeredRows | checkbox | Non | — |
| margin | number | Non | — |
| blendMode | select | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-image-watermark-tile": {
"name": "image-watermark-tile",
"description": "Ajoutez des filigranes en mosaïque aux images avec taille, opacité, espacement et motifs personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-watermark-tile",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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"
}
}
}Des questions ou un problème ? Contactez [email protected]