Create instance
create_instanceCreates a new Roblox instance under a specified parent and optionally sets its properties and attributes in one call—ideal for parts, UI elements, scripts, and folders.
Instructions
Create a new instance of a ClassName under a parent and optionally set properties in the same call. Typical use: Part in Workspace, TextLabel in a ScreenGui, Script with a Source property, Folder for grouping. Property values use the same tagged JSON that get_instance returns; plain strings are accepted for enums ("Neon"), Color3 ("#ff8800" or {"__type":"Color3",...}) and instance references.
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": {
"className": "<className>"
},
"name": "create_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Instance name. Defaults to the ClassName. | |
| parent | No | Instance path. Accepts "Workspace.Model.Part", "game.Workspace.Model.Part" or "game.Workspace[\"My Part\"].Model". Use "game" or omit for the DataModel root. Default "Workspace". | |
| className | Yes | Roblox ClassName, e.g. "Part", "Model", "Script", "TextLabel". | |
| attributes | No | Attribute map applied after creation (string/number/boolean values). | |
| properties | No | Property map applied after creation. Unknown or read-only properties are reported, not fatal. |