snap_to_palette
Map an image to a selected color palette using perceptual distance for artistic coherence. Reduce banding with optional Floyd-Steinberg dithering.
Instructions
이미지를 큐레이션 팔레트로 스냅(OKLab 지각 거리, 아트 코히어런스).
Args: src: 입력 이미지 경로. dst: 출력 경로. palette: 팔레트 이름(pico8/sweetie16/db16/edg32). list_palettes 로 확인. dither: Floyd-Steinberg 디더링으로 그라데이션 띠/노이즈 완화.
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>",
"palette": "<palette>"
},
"name": "snap_to_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | ||
| src | Yes | ||
| dither | No | ||
| palette | Yes |