Skip to main content
Glama

mass_create_objects_with_properties

Batch-create multiple Roblox objects with specific properties and parent instances in Roblox Studio using this MCP server tool, streamlining game development workflows.

Instructions

Create multiple objects at once with initial properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectsYesArray of objects to create with properties

Implementation Reference

  • The core handler function that validates the input and forwards the mass creation request to the Roblox Studio bridge API endpoint '/api/mass-create-objects-with-properties'.
    async massCreateObjectsWithProperties(objects: Array<{className: string, parent: string, name?: string, properties?: Record<string, any>}>) { if (!objects || objects.length === 0) { throw new Error('Objects array is required for mass_create_objects_with_properties'); } const response = await this.client.request('/api/mass-create-objects-with-properties', { objects }); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2) } ] }; }
  • MCP tool registration including detailed input schema defining the expected structure for the 'objects' array with className, parent, optional name and properties.
    name: 'mass_create_objects_with_properties', description: 'Create multiple objects at once with initial properties', inputSchema: { type: 'object', properties: { objects: { type: 'array', items: { type: 'object', properties: { className: { type: 'string', description: 'Roblox class name' }, parent: { type: 'string', description: 'Path to the parent instance' }, name: { type: 'string', description: 'Optional name for the object' }, properties: { type: 'object', description: 'Properties to set on creation' } }, required: ['className', 'parent'] }, description: 'Array of objects to create with properties' } }, required: ['objects'] } },
  • src/index.ts:692-693 (registration)
    Dispatch registration in the MCP CallToolRequestSchema handler that routes calls to the tools handler function.
    case 'mass_create_objects_with_properties': return await this.tools.massCreateObjectsWithProperties((args as any)?.objects);
  • HTTP proxy endpoint for direct HTTP calls to the tool from the Studio plugin bridge.
    app.post('/mcp/mass_create_objects_with_properties', async (req, res) => { try { const result = await tools.massCreateObjectsWithProperties(req.body.objects); res.json(result); } catch (error) { res.status(500).json({ error: error instanceof Error ? error.message : 'Unknown error' }); } });

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