Skip to main content
Glama

shader_delete

Remove unwanted shaders from Unity projects by specifying the file path, streamlining asset management and project cleanup.

Instructions

Delete a shader from Unity project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the shader file

Implementation Reference

  • Handler for the shader_delete tool. Validates the 'path' argument and delegates deletion to the UnityHttpAdapter's deleteShader method, returning success message.
    case 'shader_delete': { if (!args.path) { throw new Error('path is required'); } await this.adapter.deleteShader(args.path); return { content: [{ type: 'text', text: `Shader deleted successfully: ${args.path}` }] }; }
  • Tool registration in getTools() method, defining the name, description, and input schema for shader_delete.
    { name: 'shader_delete', description: 'Delete a shader from Unity project', inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'Path to the shader file' } }, required: ['path'] } },
  • Helper method in UnityHttpAdapter that performs the HTTP call to the Unity server to delete the shader using the 'shader/delete' endpoint.
    async deleteShader(path: string): Promise<any> { return this.call('shader/delete', { 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