try_hair_color
Recolour a person's hair using a preset shade or custom hex color; provide a JPEG or PNG image under 1920 px on the long side.
Instructions
Recolour a person's hair (YouCam AI Hair Color). Costs 1 unit on success. Give exactly one of preset or color (#RRGGBB). Image long side must be under 1920 px.
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": {
"person_image": "<person_image>"
},
"name": "try_hair_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| preset | No | ||
| person_image | Yes | An https:// image URL on this server's allowlist, or an image_ref (img_...) returned by an earlier call in this session. JPEG or PNG. | |
| wait_seconds | No | Seconds to wait for the result before returning a task_ref to poll. Default 60. | |
| color_intensity | No | ||
| shine_intensity | No |