enqueue_detect_characters
Start character detection server-side as a background job. Use this ONLY when the user has EXPLICITLY asked to detect/identify characters AND the script (scenes) is already written. The job reads the movie idea + script and extracts all named characters with physical and voice descriptions, persisting them to the cast. When the cast already has characters it only ADDS the ones the script names that the cast lacks; every existing character (name, description, portrait, voice) stays exactly as it is. Do NOT call this if cast already has characters unless the user explicitly asks to find or add characters from the script. Rebuilding the whole cast (replaceCast) is asked by the server first: the call answers needsConfirmation. In the Promvie studio chat the server shows the user this question in its own words and does it only on their plain yes: never ask it yourself, never say it was done, and never call again with the confirm flag there. Through the API, tell your user exactly what is lost and, only after they agree in a later message, call again with the confirm flag and the confirmId it gave. Prefer this over suggest_next_step({ action: "DETECT_CHARACTERS" }) when the user gives a direct command. The same job also finds the places and the key props. Pass propsOnly: true to find only the key props (the cast and places stay exactly as they are): use it when the user asks to find or detect the props of a movie that already has its cast.
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": {
"movieId": "<movieId>"
},
"name": "enqueue_detect_characters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. | |
| confirmId | No | Through the API: the confirmId from the needsConfirmation answer to a rebuild, sent back with confirmReplaceCast. It confirms that one question, once. | |
| propsOnly | No | Find only the key props; never touches the cast or the places. | |
| replaceCast | No | Only when the user explicitly asks to rebuild the cast (to replace it, start it over from the script). It REPLACES every existing character, with their descriptions, portraits and voices, which are lost. The first call never starts it: it answers needsConfirmation with what would be lost. Default (omitted): append-only, the existing cast is kept. Never on a series episode. | |
| confirmReplaceCast | No | Through the API only. Leave unset on the first call. Set true (with replaceCast: true) only after this tool answered needsConfirmation for the rebuild and your user agreed in a later message, in a separate later call with the confirmId that answer gave. It starts only for the cast the user was told about. In the studio chat the server answers the question itself: never set it there. |