compare_script_versions
Compare two versions of an Ignition script to generate a unified diff and summarize added or removed lines, helping identify changes before applying edits.
Instructions
Diff two versions of a script.
Args: module_path: Module path used to label the diff and load the current version. code_a: Original code; defaults to the on-disk version. code_b: New code; defaults to an empty string when omitted. project: Project name; defaults to the active project.
Returns: A unified diff and a summary of added/removed lines.
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": {
"module_path": "<module_path>"
},
"name": "compare_script_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_a | No | ||
| code_b | No | ||
| project | No | ||
| module_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||