Skip to main content
Glama

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

NameRequiredDescriptionDefault
pathsYesArray of instance paths to modify
propertyNameYesName of the property to set
propertyValueYesValue 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

  • 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) } ] }; }
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/boshyxd/robloxstudio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server