Media
Erzeugt PNGs und favicon ICO als Paket
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/png-to-icons' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/png-to-icons' \
-F 'imageFile=/path/to/file.ext' \
-F 'sizes=16,32,48,64,128,256,512' \
-F 'includeFavicon=true' \
-F 'background=#00000000'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/png-to-icons| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| imageFile | fileUpload nötig | Ja | — |
| sizes | select | Nein | — |
| includeFavicon | checkbox | Nein | — |
| background | text | Nein | — |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-png-to-icons": {
"name": "png-to-icons",
"description": "Erzeugt PNGs und favicon ICO als Paket",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=png-to-icons",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "png-to-icons",
"arguments": {
"imageFile": "https://example.com/file.ext",
"sizes": [
"16",
"32",
"48",
"64",
"128",
"256",
"512"
],
"includeFavicon": true,
"background": "#00000000"
}
}
}Dateiergebnis
{
"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)"
}Fragen oder Probleme? Kontakt: [email protected]