Try a style on a model or a photo
try_on_styleShows one style on a StyleMyCrown model, or on a photo the user attached. Without a photo it returns the model picture at once. With a photo it changes only the hair and keeps the face; it runs only when consent is true, which needs the user's explicit agreement to the photo being processed (the widget asks for it). Takes about a minute.
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": {
"style_id": "<style_id>"
},
"name": "try_on_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | No | Optional: a front-facing photo of one person, attached by the user. | |
| consent | No | True only after the user explicitly agreed to their photo being processed for this try-on. | |
| style_id | Yes | A style id from get_styles. |