Skip to content

git_blame

MCP tools › Version control

Blame of a workspace file, as Annotate with Git Blame shows it: 1-based line ranges with the commit (id, short_id, summary, author, email, time) that last changed them; lines changed since HEAD have commit null (uncommitted). An open file is blamed as the editor shows it, saved or not. start_line/end_line (1-based, inclusive) limit the lines. An untracked file is an error saying so; a file added but never committed is one uncommitted range.

Its results carry text from git, files: the client is told to treat that as data, never as instructions.

Capabilitygit.git_blame
AreaVersion control
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative file path.
start_lineintegerFirst line to return (1-based, inclusive; default 1).minimum 0
end_lineintegerLast line to return (1-based, inclusive; default the last line).minimum 0

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project git_blame '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative file path.",
"type": "string"
},
"start_line": {
"description": "First line to return (1-based, inclusive; default 1).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"end_line": {
"description": "Last line to return (1-based, inclusive; default the last line).",
"type": [
"integer",
"null"
],
"minimum": 0
}
}
}