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
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | Array of objects to create with properties |
Implementation Reference
- src/tools/index.ts:271-284 (handler)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) } ] }; }
- src/index.ts:370-404 (schema)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);
- src/http-server.ts:258-265 (helper)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' }); } });