Design
Add customizable borders to images with various styles, colors, and widths
Call this tool from your code in three languages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-add-border' \
-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/en/api/tools/image-add-border' \
-F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'borderStyle=solid' \
-F 'borderWidth=10' \
-F 'borderColor=#000000' \
-F 'borderOpacity=1' \
-F 'borderRadius=0' \
-F 'backgroundColor=#ffffff' \
-F 'outputFormat=png' \
-F 'quality=90'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/image-add-border| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Upload any image file to add border to |
| borderStyle | select | Yes | Choose the style of border to add |
| borderWidth | number | No | Width of the border in pixels |
| borderColor | color | No | Color of the border |
| borderOpacity | number | No | Opacity of the border (0.0 to 1.0) |
| borderRadius | number | No | Radius for rounded corners (0 for square corners) |
| backgroundColor | color | No | Background color between double borders |
| outputFormat | select | No | Choose output format or keep original |
| quality | number | No | Output quality for lossy formats (WebP, JPEG) |
File result
{
"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)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-image-add-border": {
"name": "image-add-border",
"description": "Add customizable borders to images with various styles, colors, and widths",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-add-border",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-add-border",
"arguments": {
"imageFile": "https://example.com/file.ext",
"borderStyle": "solid",
"borderWidth": 10,
"borderColor": "#000000",
"borderOpacity": 1,
"borderRadius": 0,
"backgroundColor": "#ffffff",
"outputFormat": "png",
"quality": 90
}
}
}Questions or issues? Contact [email protected]