quantize_palette
Reduce image colors to a target palette size without changing resolution. Unifies colors and reduces file size; optional dithering improves appearance.
Instructions
해상도 유지한 채 색 수만 줄인다(팔레트 통일/용량 절감).
Args: src: 입력 이미지 경로. dst: 출력 경로. colors: 목표 색 수. dither: 디더링 여부.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"src": "<src>",
"dst": "<dst>"
},
"name": "quantize_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | ||
| src | Yes | ||
| colors | No | ||
| dither | No |