Add a photo of a character
add_selfieAdds one photo of a person to one of the user's characters in Luala (a selfie, in the personal space), which shoots are made from, free: one face, clearly visible, up to 15 photos a character. It joins the character last used unless character names another. In a shared space with no character yet, pass the person's name as character: it makes that character. Pass the file the user attached as photo. If you can't, but the file is in your sandbox, call with its content_type (image/jpeg, image/png or image/webp: convert a HEIC to JPEG first) and size in bytes, PUT the file to the answer's upload url with its headers, then call again with the answer's key. Called with none of these, it answers with the luala.app page where the user adds it. The user accepted the upload rules when connecting Luala.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_selfie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| size | No | ||
| photo | No | The file the user attached. | |
| space | No | The space, by its id or name from list_spaces; left out, the personal one, but a shoot names one when the user is in several. When they haven't said which, ask. | |
| character | No | The character, by its id or name from list_characters. Leave it out for the one the user last made a shoot of. | |
| content_type | No |