kdeps-tools-github_get
v1.0.0Read the GitHub REST API: GET https://api.github.com/PATH and return the JSON. Use it for repositories, issues, pull requests, commits, files and search. Requires GITHUB_TOKEN, GH_TOKEN or the vault secret github_token.
set tools / shelf tools
LLM context: ~114 tokens when loaded (prompt or tool definition)
Where it runs
Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.
- the agent loop builds the request
- the tool definitions are sent to the modeltools/github_get
- the model calls a tool
- kdeps runs it
- the result goes back to the model
Loaded by: kdeps (agent loop), kdeps new, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update, kdeps upgrade
In the code: kdeps (agent loop)executor.(*Engine).Executeparallel.Runjudge.Panelagent.runJudgePanelagent.definedAs
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Pin a version with kdeps install tools/github_get@<version>.
Contents
Read the GitHub REST API: GET https://api.github.com/PATH and return the JSON. Use it for repositories, issues, pull requests, commits, files and search. Requires GITHUB_TOKEN, GH_TOKEN or the vault secret github_token.
| Parameter | Type | Description |
|---|---|---|
| path * | string | The API path after https://api.github.com/, with its query string. Examples: repos/OWNER/REPO/issues?state=open, search/issues?q=repo:OWNER/REPO+is:pr, user. |
HTTP call (declared in YAML, no Go code)
https://api.github.com/{{trimPrefix .args.path "/"}}Offered when set: GITHUB_TOKEN | GH_TOKEN | secret:github_token
- Accept:
- application/vnd.github+json
- Authorization:
- Bearer {{.env.TOKEN}}
- User-Agent:
- kdeps
- X-GitHub-Api-Version:
- 2022-11-28
version: 1.0.0
description: 'Read the GitHub REST API: GET https://api.github.com/PATH and return the JSON. Use it for repositories, issues, pull requests, commits, files and search. Requires GITHUB_TOKEN, GH_TOKEN or the vault secret github_token.'
parameters:
path:
type: string
description: 'The API path after https://api.github.com/, with its query string. Examples: repos/OWNER/REPO/issues?state=open, search/issues?q=repo:OWNER/REPO+is:pr, user.'
required: true
http:
env:
TOKEN: [GITHUB_TOKEN, GH_TOKEN, "secret:github_token"]
method: GET
# The host is fixed; path only adds to it.
url: 'https://api.github.com/{{trimPrefix .args.path "/"}}'
headers:
Accept: application/vnd.github+json
Authorization: 'Bearer {{.env.TOKEN}}'
User-Agent: kdeps
X-GitHub-Api-Version: '2022-11-28'
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.0.0 | 11/26/2026 | active | GitHub v1.0.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 11/26/2026