Design
创建艺术照片拼贴,支持圆角、边框、阴影和渐变背景等装饰效果。适合社交媒体发布和照片墙制作。
用三种语言从你的代码中调用此工具。
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-collage-maker' \
-F 'file=@/path/to/imageFiles.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/zh/api/tools/image-collage-maker' \
-F 'imageFiles=/path/to/file.ext' \
-F 'layout=grid-auto' \
-F 'spacing=10' \
-F 'borderRadius=0' \
-F 'borderWidth=0' \
-F 'borderColor=#ffffff' \
-F 'shadowBlur=0' \
-F 'shadowColor=#000000' \
-F 'backgroundType=solid' \
-F 'backgroundColor=#f0f0f0' \
-F 'backgroundColor2=#ffffff' \
-F 'backgroundDirection=diagonal' \
-F 'outputFormat=png' \
-F 'quality=90'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/image-collage-maker| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| imageFiles | file需先上传 | 是 | — |
| layout | select | 是 | — |
| spacing | number | 否 | — |
| borderRadius | number | 否 | Add rounded corners to each image |
| borderWidth | number | 否 | 为每张图片添加装饰边框 |
| borderColor | color | 否 | Color of the image borders |
| shadowBlur | number | 否 | 添加投影效果 |
| shadowColor | color | 否 | Color of the shadow |
| backgroundType | select | 是 | — |
| backgroundColor | color | 否 | 主背景颜色 |
| backgroundColor2 | color | 否 | 渐变背景的第二个颜色 |
| backgroundDirection | select | 否 | — |
| outputFormat | select | 是 | — |
| quality | number | 否 | — |
文件结果
{
"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)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-image-collage-maker": {
"name": "image-collage-maker",
"description": "创建艺术照片拼贴,支持圆角、边框、阴影和渐变背景等装饰效果。适合社交媒体发布和照片墙制作。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-collage-maker",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-collage-maker",
"arguments": {
"imageFiles": "https://example.com/file.ext",
"layout": "grid-auto",
"spacing": 10,
"borderRadius": 0,
"borderWidth": 0,
"borderColor": "#ffffff",
"shadowBlur": 0,
"shadowColor": "#000000",
"backgroundType": "solid",
"backgroundColor": "#f0f0f0",
"backgroundColor2": "#ffffff",
"backgroundDirection": "diagonal",
"outputFormat": "png",
"quality": 90
}
}
}有问题或反馈?请联系 [email protected]