set_attribute
Create or overwrite a single attribute on one Roblox Studio instance as one undo step. Accepts primitives or typed wrappers like Vector3, Color3, UDim2, and CFrame.
Instructions
Create or overwrite one attribute on one instance, recorded as one Studio undo step. For several attributes use mass_set_attribute; for built-in properties use set_property.
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>",
"name": "<name>",
"value": "<value>"
},
"name": "set_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Attribute name. Letters, digits and underscores, up to 100 characters (a Roblox rule). | |
| path | Yes | Instance to change. 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. | |
| value | Yes | Attribute value. Write a primitive (string, number, boolean) or a typed wrapper: {Vector3:[x,y,z]}, {Color3:[r,g,b]} (0-1), {UDim2:[xScale,xOffset,yScale,yOffset]}, {CFrame:[x,y,z] or all 12 components}, {EnumItem:"Enum.Material.Wood"}, {BrickColor:"Bright red"}. |