Class CreateScriptParams
Parameters for the Unity.CreateScript tool.
Implements
Inherited Members
Namespace: Unity.AI.MCP.Editor.Tools.Parameters
Assembly: Unity.AI.MCP.Editor.dll
Syntax
public record CreateScriptParams : IEquatable<CreateScriptParams>
Properties
Contents
Gets or sets the script contents (plain text).
Declaration
[McpDescription("Script contents (plain text)", Required = false)]
public string Contents { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Namespace
Gets or sets the namespace for the script.
Declaration
[McpDescription("Namespace for the script", Required = false)]
public string Namespace { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Path
Gets or sets the project path for the script (e.g., 'Assets/Scripts/MyScript.cs').
Declaration
[McpDescription("Project path for the script (e.g., 'Assets/Scripts/MyScript.cs')", Required = true)]
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ScriptType
Gets or sets the script type hint (e.g., 'MonoBehaviour', 'ScriptableObject').
Declaration
[McpDescription("Script type hint (e.g., 'MonoBehaviour', 'ScriptableObject')", Required = false)]
public string ScriptType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |