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').
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_write"
}
}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 |