Development
Erzeugt vollständiges <picture>-Markup mit Art-Direction-Zuschnitten: <source media>-Elemente je Breakpoint, 1x/2x-Kandidaten oder Breitendeskriptoren per {w}-Vorlage, optionale AVIF/WebP-Schichten, sizes-Behandlung, CLS-sicheres width/height sowie HTML- und JSX-Varianten mit spec-basierten Lint-Hinweisen.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/responsive-picture-srcset-art-direction-builder' \
-H 'Content-Type: application/json' \
-d '{"filename":"variantImages.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/de/api/tools/responsive-picture-srcset-art-direction-builder' \
-F 'sources=768 /img/hero-mid.jpg
1280 /img/hero-wide.jpg' \
-F 'variantImages=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'descriptorMode=density' \
-F 'densities=1x,2x' \
-F 'sizesAttr=(min-width: 1024px) 960px, 100vw' \
-F 'fallbackUrl=/img/hero-mobile.jpg' \
-F 'altText=Fresh sourdough loaves on a marble counter' \
-F 'formatLayer=none' \
-F 'flavor=html' \
-F 'lazyAttrs=true'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/responsive-picture-srcset-art-direction-builder| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| sources | textarea | Nein | — |
| variantImages | fileUpload nötig | Nein | — |
| descriptorMode | select | Ja | — |
| densities | text | Nein | — |
| sizesAttr | text | Nein | — |
| fallbackUrl | text | Nein | — |
| altText | text | Nein | — |
| formatLayer | select | Ja | — |
| flavor | select | Ja | — |
| lazyAttrs | checkbox | Nein | — |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-responsive-picture-srcset-art-direction-builder": {
"name": "responsive-picture-srcset-art-direction-builder",
"description": "Erzeugt vollständiges <picture>-Markup mit Art-Direction-Zuschnitten: <source media>-Elemente je Breakpoint, 1x/2x-Kandidaten oder Breitendeskriptoren per {w}-Vorlage, optionale AVIF/WebP-Schichten, sizes-Behandlung, CLS-sicheres width/height sowie HTML- und JSX-Varianten mit spec-basierten Lint-Hinweisen.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=responsive-picture-srcset-art-direction-builder",
"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": "responsive-picture-srcset-art-direction-builder",
"arguments": {
"sources": "768 /img/hero-mid.jpg\n1280 /img/hero-wide.jpg",
"variantImages": "https://example.com/file.ext",
"descriptorMode": "density",
"densities": "1x,2x",
"sizesAttr": "(min-width: 1024px) 960px, 100vw",
"fallbackUrl": "/img/hero-mobile.jpg",
"altText": "Fresh sourdough loaves on a marble counter",
"formatLayer": "none",
"flavor": "html",
"lazyAttrs": true
}
}
}Fragen oder Probleme? Kontakt: [email protected]