---
title: "extract_palette tool call"
method: POST
path: "/api/tools/extract_palette"
tags: ["Tools"]
---

# extract_palette tool call

`POST /api/tools/extract_palette`

## Request

- Base URL: `https://studiomcphub.com`
- URL: `https://studiomcphub.com/api/tools/extract_palette`
- Auth: none required

Cost: 0 GCX ($0.00). Free tool — no auth needed.

## Request body

- object
  - `format` 'hex' | 'rgb' | 'hsl': Color format in output
  - `image` string, required: Base64-encoded PNG/JPEG image
  - `num_colors` integer: Number of colors to extract (3-12)

## Response `200`

Tool result

---

[API](https://skmtc.dev/studiomcphub/apis/studiomcphub-api.md) · [All operations](https://skmtc.dev/studiomcphub/apis/studiomcphub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/studiomcphub/apis/studiomcphub-api/revisions/15995bc5ee2e?raw)
