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').
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "github_api_read"
}
}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 |