Get File Content
get_file_contentRetrieve file content from a git repository to provide additional context when reviewing code changes.
Instructions
Retrieve the content of a file in a git repository. Use it when the diff doesn't provide enough context.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoPath": "<repoPath>",
"filePath": "<filePath>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | Yes | Full path to the git repository. | |
| filePath | Yes | Relative path to the file within the repository |