Github Api Write
github_api_writeSends POST, PATCH, or PUT requests to GitHub API paths or runs GraphQL mutations to create or update resources that other tools do not modify; use the delete tool for removals.
Instructions
Sends a POST, PATCH or PUT to any path under api.github.com, or runs a GraphQL mutation, for a change no other tool makes. A DELETE, and a mutation that deletes or removes something, belong to github_api_delete, whose destructive hint says so. GitHub decides what the token may change. See #543.
Workflow and conventions: github_get_skill('api-requests').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body | |
| path | No | Path under https://api.github.com, such as repos/octocat/hello-world/labels | |
| method | No | POST | |
| graphql | No | A GraphQL mutation to run in place of a REST call | |
| max_bytes | No | Cap on the body returned | |
| variables | No | Variables for the GraphQL mutation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| status | Yes | ||
| has_more | Yes | ||
| truncated | Yes | ||
| bytes_total | Yes | ||
| bytes_returned | Yes |