get_file_content
Retrieve file content from a repository at a specific branch or commit.
Instructions
Get the content of a file from a repository at a specific branch or commit
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": {
"repository": "<repository>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name | |
| repository | Yes | Repository name or ID | |
| path | Yes | File path (e.g., "/src/index.ts") | |
| branch | No | Branch name (e.g., "main") | |
| commitId | No | Specific commit SHA (overrides branch) |