mass_set_property
Set a single property on multiple instances simultaneously. Streamline workflows in Roblox Studio by applying batch property modifications with ease.
Instructions
Set the same property on multiple instances at once
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Array of instance paths to modify | |
| propertyName | Yes | Name of the property to set | |
| propertyValue | Yes | Value to set the property to (any type) |
Input Schema (JSON Schema)
{
"properties": {
"paths": {
"description": "Array of instance paths to modify",
"items": {
"type": "string"
},
"type": "array"
},
"propertyName": {
"description": "Name of the property to set",
"type": "string"
},
"propertyValue": {
"description": "Value to set the property to (any type)"
}
},
"required": [
"paths",
"propertyName",
"propertyValue"
],
"type": "object"
}
Implementation Reference
- src/tools/index.ts:179-196 (handler)The core handler function that validates input parameters and sends an API request to the Roblox Studio bridge to mass set the specified property on multiple instance paths. Returns formatted response content for MCP.async massSetProperty(paths: string[], propertyName: string, propertyValue: any) { if (!paths || paths.length === 0 || !propertyName) { throw new Error('Paths array and property name are required for mass_set_property'); } const response = await this.client.request('/api/mass-set-property', { paths, propertyName, propertyValue }); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2) } ] }; }
- src/index.ts:247-268 (schema)The input schema definition for the mass_set_property tool, including parameters paths (array of strings), propertyName (string), and propertyValue (any), as returned in the MCP ListTools response.{ name: 'mass_set_property', description: 'Set the same property on multiple instances at once', inputSchema: { type: 'object', properties: { paths: { type: 'array', items: { type: 'string' }, description: 'Array of instance paths to modify' }, propertyName: { type: 'string', description: 'Name of the property to set' }, propertyValue: { description: 'Value to set the property to (any type)' } }, required: ['paths', 'propertyName', 'propertyValue'] } },
- src/index.ts:680-683 (registration)The dispatch/registration in the MCP server's CallToolRequest handler switch statement, which routes calls to mass_set_property to the tools.massSetProperty method.case 'mass_set_property': return await this.tools.massSetProperty((args as any)?.paths as string[], (args as any)?.propertyName as string, (args as any)?.propertyValue); case 'mass_get_property': return await this.tools.massGetProperty((args as any)?.paths as string[], (args as any)?.propertyName as string);