Save a character
save_my_characterSave a character to the customer's My Characters, so any later book can use them. Do this only when the customer asks to keep this character, because the picture often shows a real person and is kept until they delete it on the website. The picture should show this character alone. The name must be new: an @Name has to point at one character. Returns a characterId to send in an order's characterDetails as { savedCharacterId: characterId }. Saving costs no credits. Editing and deleting are on the website's My Characters page.
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": {
"name": "<name>",
"image": "<image>"
},
"name": "save_my_character"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The character's name, as the customer would write it after an @. | |
| image | Yes | This character's picture. An s3Key from upload_image needs purpose character. Pass exactly one of s3Key (returned by upload_image, or a picture uploaded on the website) or data (the PNG or JPEG itself, base64, at most 4 MB). | |
| description | No | What the character is and looks like, e.g. "a tabby cat with a red collar". |