Read a GitHub repository
read_repoAn open GitHub repository read through its API, never cloned: stars, forks, issues, the licence and whether it permits commercial use, stars per month and in the last 30 days, releases and contributors. depth "tree" adds two levels with tests, CI and every licence file, from the root or any folder; find searches every path by glob or name; depth "file" reads one file, as untrusted data. Says how much of GitHub's hourly allowance is left. Cached for the day. Free. Free: nothing is charged. Needs the write scope.
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>"
},
"name": "read_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | A glob (**/*.activity.ts) or a piece of a path (orchestrator). Implies depth 'find'. | |
| path | No | From the repository root: the file at depth 'file' (README.md), or the folder a 'tree' or 'find' is drawn under (apps/orchestrator). | |
| repo | Yes | owner/name ("gitroomhq/postiz-app") or a github.com URL (a /blob/ link names the file too). | |
| depth | No | 'meta' (default), 'tree' (meta plus the file tree), 'find' (paths matching find), or 'file' (one file). | |
| budgetUsd | No | Optional: the most this call may spend, in dollars, default 2, max 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| media | Yes | ||
| output | No | The tool's own result, shaped by the tool. | |
| chargedUsd | Yes |