set_attribute
Assign values to Roblox instance attributes with support for string, number, boolean, Vector3, Color3, UDim2, and BrickColor.
Instructions
Set an attribute value on a Roblox instance. Supports string, number, boolean, Vector3, Color3, UDim2, and BrickColor.
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": {
"instancePath": "<instancePath>",
"attributeName": "<attributeName>",
"attributeValue": "<attributeValue>"
},
"name": "set_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valueType | No | Optional type hint: "Vector3", "Color3", "UDim2", "BrickColor" | |
| instancePath | Yes | Roblox instance path using dot notation (e.g., "game.Workspace.Part") | |
| attributeName | Yes | Name of the attribute to set | |
| attributeValue | Yes | Value to set. For Vector3: {X, Y, Z}, Color3: {R, G, B}, UDim2: {X: {Scale, Offset}, Y: {Scale, Offset}} |