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) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-watermark-diagonal' \
-H 'Content-Type: application/json' \
-d '{"filename":"imageFile.ext","contentType":"application/octet-stream","size":12345}'
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-watermark-diagonal' \
-H 'Content-Type: application/json' \
-d '{"filename":"watermarkImageFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/fr/api/tools/image-watermark-diagonal' \
-F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'watermarkImageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.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]