Design
Divisez une seule image en une grille de plusieurs carreaux. Parfait pour créer des publications Instagram 3x3, des bannières ou des grilles photos imprimables.
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-grid-layout' \
-H 'Content-Type: application/json' \
-d '{"filename":"imageFile.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-grid-layout' \
-F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'gridType=3x3' \
-F 'customColumns=0' \
-F 'customRows=0' \
-F 'numbering=false' \
-F 'outputFormat=png' \
-F 'quality=90' \
-F 'zipOutput=true'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-grid-layout| Nom | Type | Requis | Description |
|---|---|---|---|
| imageFile | fileupload requis | Oui | The image that will be sliced into grid tiles |
| gridType | select | Oui | Choose how to divide the image |
| customColumns | number | Non | Number of columns for custom grid |
| customRows | number | Non | Number of rows for custom grid |
| numbering | checkbox | Non | Add sequential numbers to each tile |
| outputFormat | select | Oui | — |
| quality | number | Non | — |
| zipOutput | checkbox | Non | Create a ZIP file containing all tiles |
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-grid-layout": {
"name": "image-grid-layout",
"description": "Divisez une seule image en une grille de plusieurs carreaux. Parfait pour créer des publications Instagram 3x3, des bannières ou des grilles photos imprimables.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-grid-layout",
"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-grid-layout",
"arguments": {
"imageFile": "https://example.com/file.ext",
"gridType": "3x3",
"customColumns": 0,
"customRows": 0,
"numbering": false,
"outputFormat": "png",
"quality": 90,
"zipOutput": true
}
}
}Des questions ou un problème ? Contactez [email protected]