rename_instance
Rename a Roblox instance by dot path and return its new path as one Studio undo step. Use it to update object names in the DataModel, and check scripts with grep first.
Instructions
Change an instance's Name and return its new path. Recorded as one Studio undo step. Scripts that find the instance by its old name will stop finding it, so search with grep_scripts first when renaming something code refers to.
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": {
"path": "<path>",
"newName": "<newName>"
},
"name": "rename_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Instance to rename. Dot path from the DataModel root, e.g. "Workspace.Map.Door" or "StarterGui.HUD.Frame". A leading "game." is optional; a duplicate sibling name takes the suffix Tufan prints, e.g. "Part (2)". | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| newName | Yes | The new Name. Duplicate names are allowed; Tufan then addresses the later sibling as "Name (2)". |