Skip to main content
Glama

compare_files

Compare two files to highlight differences using multiple formats like unified, side-by-side, inline, or context. Configure context lines, ignore whitespace, and enable word-level comparisons for precise analysis.

Instructions

Compare two files and show differences with multiple format options

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextLinesNoNumber of context lines (default: 3)
file1YesFirst file path
file2YesSecond file path
formatNoDiff format
ignoreWhitespaceNoIgnore whitespace changes
label1NoLabel for first file
label2NoLabel for second file
wordDiffNoShow word-level differences

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/block/vscode-mcp'

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