script_apply_diff
Apply unified diffs to C# scripts in Unity projects, supporting previews via dry-run mode. Integrates with the MCP Server for efficient script updates and version control.
Instructions
Apply a unified diff to a C# script
Input Schema
Name | Required | Description | Default |
---|---|---|---|
diff | Yes | Unified diff content to apply | |
options | No | Optional diff application settings | |
path | Yes | Path to the script file |
Input Schema (JSON Schema)
{
"properties": {
"diff": {
"description": "Unified diff content to apply",
"type": "string"
},
"options": {
"description": "Optional diff application settings",
"properties": {
"dryRun": {
"description": "Preview changes without applying (default: false)",
"type": "boolean"
}
},
"type": "object"
},
"path": {
"description": "Path to the script file",
"type": "string"
}
},
"required": [
"path",
"diff"
],
"type": "object"
}