get_file_content
Retrieve file contents from a GitHub repository by supplying the file path. Optionally set a branch, tag, or commit SHA to read a specific version.
Instructions
Read a file from the connected GitHub repository.
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": {
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA | |
| path | Yes | File path in the repository | |
| teamId | No | Team ID (auto from session if omitted) | |
| projectId | No | Project ID (auto from session if omitted) |