Create or update characters
upsert_charactersCreates characters (no id, name required) or updates them (id + expected_version, only the fields sent change), with their looks (costumes, and the other bodies a character takes).Create each character complete, all in one call: name, role, age, gender, logline, appearance (canonical: reused for every image), voice_style, and for central characters (≤3) their story (one text: want, need, wound, flaw, stakes, contradiction, empathy lever, arc, a labelled line each); give a look a name and a description. A character who changes shape (a dragon, a wolf, a monster, a child or aged self) gets one more look per shape with is_form: true, its description the whole body of that form; a scene where they are in that shape picks it as their look, or the video shows their usual body.Cast for contrast: central characters must be easy to tell apart at thumbnail size (different hair length and colour, silhouette, wardrobe colours). Cast good-looking people by default, as the hit dramas do: leads strikingly beautiful or handsome, villains glamorous, supporting characters attractive, children cute, elders distinguished, each in the ideal of the genre and visual style and right for their age (never sexualised). Write plain or unattractive features only when the user or the story asks for them, and then say so plainly ("plain, homely face"): the portrait follows those words. Each result lists what the character is still missing: fill it in your next call (send the id, expected_version and those fields); notes say what to fix about an appearance just written. Only the fields listed here exist; any other is refused. A name already in use fails with DUPLICATE_NAME and the existing id.
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": {
"drama_id": "<drama_id>",
"characters": "<characters>"
},
"name": "upsert_characters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drama_id | Yes | The drama id (drm_…), from list_dramas or create_drama. | |
| characters | Yes | Characters to create or update, matched by name: appearance, voice, story and looks. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| characters | Yes |