Rename a story element
update_entityRename a story element, as renaming it in the Story elements panel does: the element takes the new name (stored in capitals), and the script follows. For a character, every cue linked to it, and every cue that names it without a link, shows the new name (cue extensions such as (O.S.) are kept); for a place, its scene headings show the new name. Shots keep citing it: they cite it by id. Its mention becomes the new referenceHandle.
Only rename when the user asks. Call it without confirm first: nothing changes, and it returns a preview with the new name, the new referenceHandle and how many script lines change. Ask the user once, then call again with the same entityId and name and confirm: true. The pre-rename script is saved to version History.
A character's name is its script cue, so it takes no parentheses. A name that another element of the same kind already has is refused: when the two are the same element, use merge_entities. entityId comes from list_entities.
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": {
"entityId": "<entityId>",
"name": "<name>",
"projectId": "<projectId>"
},
"name": "update_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The new name, e.g. "MARA" or "OLD LIGHTHOUSE". | |
| confirm | No | Leave out to get a preview of what would change; nothing is changed. Ask the user to confirm it, then call again with confirm: true once they agree. | |
| entityId | Yes | The story element (entityId from list_entities). | |
| projectId | Yes | ScreenWeaver project id (from list_projects). |