Skip to main content
Glama

diff_diff_files

Compare two files to generate a unified diff showing added, removed, and unchanged lines. Identify changes between file versions for code review or version tracking.

Instructions

[diff] Compare two files and return a unified diff. Returns {unified: str, added_lines: int, removed_lines: int, unchanged_lines: int, has_changes: bool}. Returns an error if either file cannot be read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
path_aYes
path_bYes
contextNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server