convert_mode
Convert the photo's base color mode, rgb <-> grayscale; an indexed photo is refused outright as a source. Converting to grayscale permanently discards color; converting a grayscale photo to rgb does not restore it. A no-op when the photo is already in the requested mode (reported as converted: false, nothing else changes; this is checked BEFORE the refusal below, so a no-op call never fails just because a filter is present). Otherwise REFUSES outright while the photo has ANY live filter, since a color-dependent filter (curves on the red channel, hue_saturation, a vignette color...) could change meaning across the mode change: bake it first (bake) or delete it (manage_filters op=delete), then convert. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt.
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": {
"image": "<image>",
"mode": "<mode>"
},
"name": "convert_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Target base color mode. An indexed source image is refused outright. | |
| image | Yes | Image id, as returned by open_photo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| converted | No | ||
| mindset_notes | No |