mass_create_objects
Generate multiple objects in Roblox Studio simultaneously by specifying class names, parent paths, and optional names. Simplifies bulk object creation for efficient project setup.
Instructions
Create multiple objects at once (basic, without properties)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | Array of objects to create |
Input Schema (JSON Schema)
{
"properties": {
"objects": {
"description": "Array of objects to create",
"items": {
"properties": {
"className": {
"description": "Roblox class name",
"type": "string"
},
"name": {
"description": "Optional name for the object",
"type": "string"
},
"parent": {
"description": "Path to the parent instance",
"type": "string"
}
},
"required": [
"className",
"parent"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"objects"
],
"type": "object"
}
Implementation Reference
- src/tools/index.ts:256-269 (handler)The handler function that executes the mass_create_objects tool. Validates the input objects array and forwards the request to the Studio HTTP client endpoint '/api/mass-create-objects', returning the formatted response.async massCreateObjects(objects: Array<{className: string, parent: string, name?: string}>) { if (!objects || objects.length === 0) { throw new Error('Objects array is required for mass_create_objects'); } const response = await this.client.request('/api/mass-create-objects', { objects }); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2) } ] }; }
- src/index.ts:337-367 (schema)The input schema definition for the mass_create_objects tool, registered in the MCP server's listTools handler. Defines the expected structure: an array of objects each with className, parent, and optional name.{ name: 'mass_create_objects', description: 'Create multiple objects at once (basic, without 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' } }, required: ['className', 'parent'] }, description: 'Array of objects to create' } }, required: ['objects'] }
- src/index.ts:690-691 (registration)The registration/dispatch case in the MCP server's CallToolRequest handler that routes 'mass_create_objects' calls to this.tools.massCreateObjects.case 'mass_create_objects': return await this.tools.massCreateObjects((args as any)?.objects);