create_gist
Create and share code snippets or text files on GitHub using the GitHub MCP Server. Specify files, descriptions, and privacy settings to generate a new gist.
Instructions
Create a new 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": {
"files": "<files>"
},
"name": "create_gist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Dictionary of filename to file content (e.g. {"hello.py": "print('hello')"}) | |
| description | No | Gist description | |
| public | No | Whether the gist is public |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |