get_file
Return the full text of a single file in a repository, by path. Use after list_files or search_context to drill in.
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": {
"repo": "<repo>",
"path": "<path>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional branch, tag or commit SHA (defaults to the default branch). | |
| path | Yes | File path within the repo. | |
| repo | Yes | A GitHub repo as "owner/repo" or a github.com URL. |