Design
Adjust color opacity/alpha transparency with real-time preview and batch processing
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/color-opacity-adjuster' \
-H 'Content-Type: application/json' \
-d '{"baseColor":"#FF5733","opacityMode":"alpha","opacityValue":80,"backgroundColor":"#FFFFFF","outputFormat":"rgba","preserveOriginalHex":true,"batchColors":"#FF0000, #00FF00, #0000FF","includeOriginal":true,"showComparison":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/color-opacity-adjuster| Name | Type | Required | Description |
|---|---|---|---|
| baseColor | color | Yes | — |
| opacityMode | select | No | — |
| opacityValue | range | No | — |
| backgroundColor | color | No | — |
| outputFormat | select | No | — |
| preserveOriginalHex |
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-color-opacity-adjuster": {
"name": "color-opacity-adjuster",
"description": "Adjust color opacity/alpha transparency with real-time preview and batch processing",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=color-opacity-adjuster",
"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": "color-opacity-adjuster",
"arguments": {
"baseColor": "#FF5733",
"opacityMode": "alpha",
"opacityValue": 80,
"backgroundColor": "#FFFFFF",
"outputFormat": "rgba",
"preserveOriginalHex": true,
"batchColors": "#FF0000, #00FF00, #0000FF",
"includeOriginal": true,
"showComparison": true
}
}
}Questions or issues? Contact [email protected]
| checkbox |
| No |
| — |
| batchColors | text | No | Enter multiple colors separated by commas (e.g., #FF0000, #00FF00, #0000FF) |
| includeOriginal | checkbox | No | — |
| showComparison | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}