diff_local_component
Diff local ServiceNow components vs remote or another root. View unified diffs, get status-only verdicts, or fast-forward clean local changes to the live server.
Instructions
Diff local edits vs remote (or compare_to root); verdict=True status-only, refresh=True fast-forwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Local file, widget dir, or download root (file→diff, root→summary). | |
| refresh | No | Fast-forward clean local files to the live server body; edits kept. | |
| verdict | No | Status-only: verdict + changed-line counts, no diff bodies; dirs scan all. | |
| compare_to | No | 2nd download root to diff against instead of remote (dev-vs-test, no network). | |
| context_lines | No | Number of context lines in unified diff output (default 3) |