update_gist
Update an existing GitHub gist by modifying its description, editing file contents, renaming files, or deleting files. Unchanged files remain as-is.
Instructions
Update an existing gist. You can change the description and/or update, rename, or delete individual files. To update a file, supply its current filename as the key with new content or a new filename. To delete a file, supply its current filename as the key with a null value. Files not mentioned in the request are left unchanged. Docs: https://docs.github.com/en/rest/gists/gists#update-a-gist
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gist_id": "<gist_id>"
},
"name": "update_gist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to update. Each key is the current filename. Set a value to null to delete that file. Omit a file to leave it unchanged. | |
| gist_id | Yes | The unique identifier of the gist to update. | |
| description | No | New description for the gist. |