Skip to main content
Glama

compare_files

Compare two files to identify differences with customizable formatting options for code review and version tracking.

Instructions

Compare two files and show differences with multiple format options

Input Schema

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

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