analyze_code_diff
Compare code versions to identify specific changes, extract minimal updates, and optimize code references efficiently for AI assistants. Supports TypeScript/JavaScript, Python, Go, and Rust.
Instructions
Analyze differences between code versions and provide minimal updates
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | Path to the source file | |
newContent | Yes | Current version of the code | |
oldContent | Yes | Previous version of the code |
Input Schema (JSON Schema)
{
"properties": {
"filePath": {
"description": "Path to the source file",
"type": "string"
},
"newContent": {
"description": "Current version of the code",
"type": "string"
},
"oldContent": {
"description": "Previous version of the code",
"type": "string"
}
},
"required": [
"filePath",
"oldContent",
"newContent"
],
"type": "object"
}