get_file_content
Retrieve file contents from a GitHub repository by providing owner, repository, and file path. Optionally specify a branch, tag, or commit SHA.
Instructions
Obtiene el contenido de un archivo específico de un repositorio
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": {
"owner": "<owner>",
"repo": "<repo>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag o commit SHA (por defecto: rama principal) | |
| path | Yes | Ruta del archivo en el repositorio | |
| repo | Yes | Nombre del repositorio | |
| owner | Yes | Propietario del repositorio |