delete_location
Remove a location, with its image, from the movie (and from the whole series when the movie is an episode). Destructive: only after the user explicitly asked. On an episode of a series the places are shared: this removes the location and its image from EVERY episode. The first call never deletes: it answers needsConfirmation with what is lost. 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.
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>",
"locationId": "<locationId>"
},
"name": "delete_location"
}
}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, sent back with confirmDelete. It confirms that one question, once. | |
| locationId | Yes | Location id to delete. | |
| confirmDelete | No | Through the API only. Leave unset on the first call. Set true ONLY after this tool answered needsConfirmation and your user, told that the location and its image will be deleted (from every episode on a series), agreed in a later message, in a separate later call that also sends the confirmId. In the studio chat the server answers the question itself: never set it there. |