create_patch
Create a patch file from differences between two files or directories. Save the patch to a specified output file or print it to standard output.
Instructions
Create a patch file from differences between files or directories
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"target": "<target>"
},
"name": "create_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source file or directory | |
| target | Yes | Target file or directory | |
| outputFile | No | Output patch file (optional, prints to output if not specified) |