Skip to main content
Glama

diff

Compare two files to identify differences with encoding-aware analysis. Outputs unified diff format with configurable context lines around changes.

Instructions

Compares two files and outputs a unified diff. Encoding-aware: auto-detects file encoding before comparison. Max 50,000 lines per file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_aYesAbsolute path to the first file
file_bYesAbsolute path to the second file
context_linesNoNumber of context lines around changes (default 3)

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/knewstimek/agent-tool'

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