Class ApplyTextEditsParams
Parameters for the Unity.ApplyTextEdits tool.
Implements
Inherited Members
Namespace: Unity.AI.MCP.Editor.Tools.Parameters
Assembly: Unity.AI.MCP.Editor.dll
Syntax
public record ApplyTextEditsParams : IEquatable<ApplyTextEditsParams>
Properties
Edits
List of edits to apply to the script, each containing startLine, startCol, endLine, endCol, newText (1-indexed!)
Declaration
[McpDescription("List of edits to apply to the script, each containing startLine, startCol, endLine, endCol, newText (1-indexed!)", Required = true)]
public List<Dictionary<string, object>> Edits { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Dictionary<string, object>> |
Options
Optional additional options for the script editor (e.g., applyMode, debug_preview, force_sentinel_reload)
Declaration
[McpDescription("Optional options, used to pass additional options to the script editor", Required = false)]
public Dictionary<string, object> Options { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
PreconditionSha256
SHA256 of the script to edit, used to prevent concurrent edits
Declaration
[McpDescription("SHA256 of the script to edit, used to prevent concurrent edits", Required = true)]
public string PreconditionSha256 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Strict
Optional strict flag, when true enforces strict validation of coordinates
Declaration
[McpDescription("Optional strict flag, used to enforce strict mode", Required = false)]
public bool? Strict { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Uri
URI or Assets-relative path to the script (e.g., 'unity://path/Assets/Scripts/MyScript.cs', 'file://...', or 'Assets/Scripts/MyScript.cs')
Declaration
[McpDescription("URI or Assets-relative path to the script (e.g., 'unity://path/Assets/Scripts/MyScript.cs', 'file://...', or 'Assets/Scripts/MyScript.cs')", Required = true)]
public string Uri { get; set; }
Property Value
| Type | Description |
|---|---|
| string |