Design
Ajoutez des filigranes d'image aux images avec position, taille, opacité et rotation 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-image' \
-F 'file=@/path/to/imageFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/image-watermark-image' \
-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-image' \
-F 'imageFile=/path/to/file.ext' \
-F 'watermarkImageFile=/path/to/file.ext' \
-F 'position=bottom-right' \
-F 'scale=0.2' \
-F 'opacity=0.7' \
-F 'rotation=0' \
-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-image| Nom | Type | Requis | Description |
|---|---|---|---|
| imageFile | fileupload requis | Oui | — |
| watermarkImageFile | fileupload requis | Oui | — |
| position | select | Oui | — |
| scale | number | Non | — |
| opacity | number | Non | — |
| rotation | number | 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-image": {
"name": "image-watermark-image",
"description": "Ajoutez des filigranes d'image aux images avec position, taille, opacité et rotation personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-watermark-image",
"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-image",
"arguments": {
"imageFile": "https://example.com/file.ext",
"watermarkImageFile": "https://example.com/file.ext",
"position": "bottom-right",
"scale": 0.2,
"opacity": 0.7,
"rotation": 0,
"margin": 20,
"blendMode": "over"
}
}
}Des questions ou un problème ? Contactez [email protected]