Skip to main content
Glama

folder_create

Generate a new folder in a Unity project by specifying its path. Simplifies asset organization and enhances project structure directly within Unity.

Instructions

Create a new folder in Unity project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath for the new folder (e.g., Assets/MyFolder)

Implementation Reference

  • MCP tool handler for folder_create: validates input, calls adapter.createFolder(), and formats success response.
    case 'folder_create': { if (!args.path) { throw new Error('path is required'); } const result = await this.adapter.createFolder(args.path); return { content: [{ type: 'text', text: `Folder created successfully:\nPath: ${result.path}\nGUID: ${result.guid}` }] };
  • Tool registration in getTools() array, including name, description, and input schema.
    { name: 'folder_create', description: 'Create a new folder in Unity project', inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'Path for the new folder (e.g., Assets/MyFolder)' } }, required: ['path'] } },
  • Input schema definition for folder_create tool.
    inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'Path for the new folder (e.g., Assets/MyFolder)' } }, required: ['path'] }
  • Supporting method in UnityHttpAdapter that proxies the folder/create RPC call to Unity HTTP server.
    async createFolder(path: string): Promise<{ path: string; guid: string }> { return this.call('folder/create', { path }); }

Other Tools

Related Tools

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/zabaglione/mcp-server-unity'

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