datafile diff
File Diff
file_diffCompares two local text files and returns a bounded unified diff. Use when an agent needs to review changes or reconcile generated files. Scope: local filesystem only and read-only; each file is capped at 1 MB and the diff at 2,000 lines. Not for binary files or applying patches.
How to use file_diff
Provide only the required inputs below. Start with the smallest scope that answers the task, then review the risk properties before an agent executes the call.
Risk and execution properties
Read only: yes
Destructive: no
Idempotent: yes
Open world: no — operates locally or through configured services
Inputs
left_pathstringrequiredFirst text file.
right_pathstringrequiredSecond text file.
context_linesintegerUnchanged context lines per hunk. Max: 20.
Default: 3
Example input
{
"left_path": "<string>",
"right_path": "<string>",
"context_lines": 3
}Browse or search the full 74-tool reference to choose the smallest suitable capability.
Browse all tools →