Github Api Read
github_api_readSend a GET to any api.github.com path or run a read-only GraphQL query for endpoints other tools don't cover, with token-scoped access and clear scope errors.
Instructions
Sends a GET to any path under api.github.com, or runs a GraphQL query, for an endpoint no other tool covers. GitHub decides what the token may read, and a refusal names the scope it lacks where GitHub says. See #543.
Workflow and conventions: github_get_skill('api-requests').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path under https://api.github.com, such as repos/octocat/hello-world/collaborators | |
| params | No | Query parameters, such as per_page and page | |
| graphql | No | A GraphQL query to run in place of a REST GET. Mutations are refused | |
| max_bytes | No | Cap on the body returned | |
| variables | No | Variables for the GraphQL query |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| status | Yes | ||
| has_more | Yes | ||
| truncated | Yes | ||
| bytes_total | Yes | ||
| bytes_returned | Yes |