Diff two data files
diff_dataCompare two local data files to detect added, removed, changed, and unchanged rows. Optionally create a self-contained HTML diff report for offline review.
Instructions
Compare two local data files (a git-style diff for data). Reports added/removed/changed/unchanged row counts (matched by --key when given), and optionally writes a self-contained offline HTML diff report. Both files stay local.
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": {
"before": "<before>",
"after": "<after>"
},
"name": "diff_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Column(s) that uniquely identify a row (enables cell-level changes). | |
| after | Yes | Path to the NEW file. | |
| before | Yes | Path to the OLD file. | |
| out_path | No | If set, write an offline HTML diff report here and return its path. |