Design
Ajoutez des filigranes diagonaux aux images avec angle, taille, opacité et positionnement le long de la diagonal 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-diagonal' \
-F 'file=@/path/to/imageFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/image-watermark-diagonal' \
-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-diagonal' \
-F 'imageFile=/path/to/file.ext' \
-F 'watermarkImageFile=/path/to/file.ext' \
-F 'diagonalAngle=45' \
-F 'scale=0.3' \
-F 'opacity=0.5' \
-F 'spacing=100' \
-F 'margin=50' \
-F 'blendMode=over' \
-F 'repeatCount=3' \
-F 'centerOnDiagonal=false' \
-F 'autoFit=false' \
-F 'stretchToFit=false'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-diagonal| Nom | Type | Requis | Description |
|---|---|---|---|
| imageFile | fileupload requis | Oui | — |
| watermarkImageFile | fileupload requis | Oui | — |
| diagonalAngle | number | Non | — |
| scale | number | Non | — |
| opacity | number | Non | — |
| spacing | number | Non | — |
| margin | number | Non | — |
| blendMode | select | Non | — |
| repeatCount | number | Non | — |
| centerOnDiagonal | checkbox | Non | — |
| autoFit | checkbox | Non | — |
| stretchToFit | checkbox | 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-diagonal": {
"name": "image-watermark-diagonal",
"description": "Ajoutez des filigranes diagonaux aux images avec angle, taille, opacité et positionnement le long de la diagonal personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-watermark-diagonal",
"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-diagonal",
"arguments": {
"imageFile": "https://example.com/file.ext",
"watermarkImageFile": "https://example.com/file.ext",
"diagonalAngle": 45,
"scale": 0.3,
"opacity": 0.5,
"spacing": 100,
"margin": 50,
"blendMode": "over",
"repeatCount": 3,
"centerOnDiagonal": false,
"autoFit": false,
"stretchToFit": false
}
}
}Des questions ou un problème ? Contactez [email protected]