git_read_file
Reads one file from a repo.
Reads one file from a repo.
- Tool name
- git_read_file
- Group
- GitHub
- Risk
- low
- Needs approval
- never
- Approval rule
- No approval.
- Allowed in scheduled jobs
- No
- Default
- off
Parameters
| Name | Type | Required | Default | Meaning | Limits |
|---|---|---|---|---|---|
| repo | string | Yes | Repository as owner/name. | ||
| path | string | Yes | Path relative to the project, such as vault/note.md. |
Returns
File text.
Example (made up for this page)
{
"repo": "demo",
"path": "demo"
}# DemoSide effects
- Calls the GitHub API.
How it can fail
| When | What the agent sees |
|---|---|
| No token | Not configured text |
| Not found | GitHub error: HTTP 404 |
See also:GitHub tools
Checked against the source at commit f4fd89f on 29 Oct 2026. Everything here is merged on the main branch; no release has been tagged yet. The source is private, so these pages are the public description.