Skip to main content
Glama

script-update-or-create

Update or create C# script files in Unity projects, automatically refreshing assets and reporting compilation errors to maintain code integrity.

Instructions

Updates or creates script file with the provided C# code. Does AssetDatabase.Refresh() at the end. Provides compilation error details if the code has syntax errors. Use 'script-read' tool to read existing script files first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to the script file. Example: "Assets/Scripts/MyScript.cs"
contentYesFull C# source code content for the file.
requestIdNo

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/butterlatte-zhang/unity-ai-bridge'

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