Extract Colours from Image
extract_image_coloursExtract dominant colours from a photograph using Colour Memory's proprietary k-means++ algorithm. Requires either a public image_url, or an image_id. A raw uploaded file with no public URL (e.g. a local file path or a ChatGPT file attachment without a usable download_url) is accepted as an image_id from ingest_image. Returns hex values with proportional weights. Optionally matches colours against the archive with style_context for coherent cultural naming. Its output feeds image_brief for an uploaded photograph.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_image_colours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of colours to extract (3-12, default 6) | |
| image | No | Image file attachment from ChatGPT | |
| analyse | No | If true, match colours against archive and return names | |
| image_id | No | Ephemeral image_id returned by ingest_image. Covers a local file path or raw file attachment with no public URL. | |
| image_url | No | Public URL of image | |
| grey_card_hex | No | Hex from a grey/white card for white balance | |
| style_context | No | e.g. English cottage garden, Victorian, Japanese |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||