Return file diff. Requires project.files.read.
Arguments
file_pathstring · min length 1requiredProject-relative source path, or the file ID.
refstringContent to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main.
source_refstringVersion ID to compare from. Required except on a branch, which compares against main.
context_linesinteger · min 0 · max 10Context lines around a change, 0 to 10 (default 3).
project_referencestringProject ID or slug (defaults to the current project)
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__get_file_diff", "arguments": { "file_path": "string" } }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"path\":\"string\",\"diff\":\"string\",\"additions\":0,\"deletions\":0}" } ], "structuredContent": { "path": "string", "diff": "string", "additions": 0, "deletions": 0 } }}The tool ran; its output is result.structuredContent.