Design
Add geometric pattern overlays to images with customizable colors, size, and rotation
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-add-pattern' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/image-add-pattern' \
-F 'imageFile=/path/to/file.ext' \
-F 'patternType=dots' \
-F 'foregroundColor=#000000' \
-F 'backgroundColor=#ffffff' \
-F 'size=10' \
-F 'spacing=20' \
-F 'opacity=0.8' \
-F 'rotation=0' \
-F 'blendMode=overlay' \
-F 'outputFormat=original' \
-F 'quality=90'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-add-pattern| Nom | Type | Requis | Description |
|---|---|---|---|
| imageFile | fileupload requis | Oui | Upload any image file to add pattern effect to |
| patternType | select | Non | Choose the type of geometric pattern |
| foregroundColor | color | Non | Color of the pattern elements |
| backgroundColor | color | Non | Background color of the pattern |
| size | number | Non | Size of pattern elements (1-50 pixels) |
| spacing | number | Non | Spacing between pattern elements (5-100 pixels) |
| opacity | number | Non | Opacity of the pattern (0.0 to 1.0) |
| rotation | number | Non | Rotation angle of the pattern (0-360 degrees) |
| blendMode | select | Non | Choose how the pattern blends with the image |
| outputFormat | select | Non | Choose output format or keep original |
| quality | number | Non | Output quality for lossy formats (WebP, JPEG) |
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-add-pattern": {
"name": "image-add-pattern",
"description": "Add geometric pattern overlays to images with customizable colors, size, and rotation",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-add-pattern",
"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-add-pattern",
"arguments": {
"imageFile": "https://example.com/file.ext",
"patternType": "dots",
"foregroundColor": "#000000",
"backgroundColor": "#ffffff",
"size": 10,
"spacing": 20,
"opacity": 0.8,
"rotation": 0,
"blendMode": "overlay",
"outputFormat": "original",
"quality": 90
}
}
}Des questions ou un problème ? Contactez [email protected]