Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Design

Color Palette Extractor from Image URL

Fetch a remote image URL, extract dominant colors, export code-ready palette files, and review contrast ratios

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/color-palette-extractor-from-image-url' \
  -H 'Content-Type: application/json' \
  -d '{"imageUrl":"data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%221200%22%20height=%22630%22%20viewBox=%220%200%201200%20630%22%3E%3Crect%20width=%221200%22%20height=%22630%22%20fill=%22%232563eb%22/%3E%3Crect%20x=%2270%22%20y=%2270%22%20width=%22360%22%20height=%22490%22%20rx=%2236%22%20fill=%22%23f8fafc%22/%3E%3Crect%20x=%22490%22%20y=%2270%22%20width=%22640%22%20height=%22220%22%20rx=%2232%22%20fill=%22%23111827%22/%3E%3Crect%20x=%22490%22%20y=%22330%22%20width=%22280%22%20height=%22150%22%20rx=%2228%22%20fill=%22%23f59e0b%22/%3E%3Crect%20x=%22810%22%20y=%22330%22%20width=%22320%22%20height=%22150%22%20rx=%2228%22%20fill=%22%2310b981%22/%3E%3C/svg%3E","paletteSize":6,"exportPackageName":"launch-hero-palette"}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/color-palette-extractor-from-image-url

Parameters

NameTypeRequiredDescription
imageUrltextYesFetch a remote image, extract dominant colors, and build a downloadable palette package
paletteSizenumberNo—
exportPackageNametextNo—

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-color-palette-extractor-from-image-url": {
      "name": "color-palette-extractor-from-image-url",
      "description": "Fetch a remote image URL, extract dominant colors, export code-ready palette files, and review contrast ratios",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=color-palette-extractor-from-image-url",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "color-palette-extractor-from-image-url",
    "arguments": {
  "imageUrl": "data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%221200%22%20height=%22630%22%20viewBox=%220%200%201200%20630%22%3E%3Crect%20width=%221200%22%20height=%22630%22%20fill=%22%232563eb%22/%3E%3Crect%20x=%2270%22%20y=%2270%22%20width=%22360%22%20height=%22490%22%20rx=%2236%22%20fill=%22%23f8fafc%22/%3E%3Crect%20x=%22490%22%20y=%2270%22%20width=%22640%22%20height=%22220%22%20rx=%2232%22%20fill=%22%23111827%22/%3E%3Crect%20x=%22490%22%20y=%22330%22%20width=%22280%22%20height=%22150%22%20rx=%2228%22%20fill=%22%23f59e0b%22/%3E%3Crect%20x=%22810%22%20y=%22330%22%20width=%22320%22%20height=%22150%22%20rx=%2228%22%20fill=%22%2310b981%22/%3E%3C/svg%3E",
  "paletteSize": 6,
  "exportPackageName": "launch-hero-palette"
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool