{
  "service": "gist",
  "displayName": "Gist",
  "categories": [
    "Developer Tools"
  ],
  "authTypes": [
    "oauth2",
    "api_key"
  ],
  "auth": [
    {
      "type": "oauth2",
      "authorizationUrl": "https://github.com/login/oauth/authorize",
      "tokenUrl": "https://github.com/login/oauth/access_token",
      "scopes": [
        "read:user",
        "gist"
      ],
      "tokenEndpointAuthMethod": "client_secret_post"
    },
    {
      "type": "api_key",
      "label": "Personal Access Token",
      "placeholder": "github_pat_...",
      "description": "GitHub personal access token used with the Authorization Bearer header. Create or manage it at https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens."
    }
  ],
  "homepageUrl": "https://gist.github.com",
  "actions": [
    {
      "id": "gist.check_gist_starred",
      "service": "gist",
      "name": "check_gist_starred",
      "description": "Check whether the authenticated GitHub user has starred a gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to inspect."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for checking gist star state."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "starred": {
            "type": "boolean",
            "description": "Whether the authenticated user has starred the gist."
          }
        },
        "additionalProperties": false,
        "required": [
          "starred"
        ],
        "description": "The output payload for checking gist star state."
      }
    },
    {
      "id": "gist.create_gist",
      "service": "gist",
      "name": "create_gist",
      "description": "Create a new GitHub gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "The description to store on the gist."
          },
          "public": {
            "type": "boolean",
            "description": "Whether the gist should be publicly visible."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "content": {
                  "type": "string",
                  "description": "The text content for the new gist file."
                }
              },
              "additionalProperties": false,
              "description": "The input for creating a gist file."
            },
            "description": "The files to create in the gist, keyed by filename."
          }
        },
        "additionalProperties": false,
        "required": [
          "files"
        ],
        "description": "The input payload for creating a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the gist."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the gist."
          },
          "forks_url": {
            "type": "string",
            "description": "The API URL for listing gist forks."
          },
          "commits_url": {
            "type": "string",
            "description": "The API URL for listing gist commits."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the gist."
          },
          "git_pull_url": {
            "type": "string",
            "description": "The git pull URL for the gist."
          },
          "git_push_url": {
            "type": "string",
            "description": "The git push URL for the gist."
          },
          "html_url": {
            "type": "string",
            "description": "The HTML URL of the gist."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "filename": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "size": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "content": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "encoding": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist file record."
            },
            "description": "The files contained in the gist, keyed by filename."
          },
          "public": {
            "type": "boolean",
            "description": "Whether the gist is publicly visible."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the gist."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the gist."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "comments": {
            "type": "integer",
            "description": "The number of comments on the gist."
          },
          "comments_url": {
            "type": "string",
            "description": "The API URL for listing gist comments."
          },
          "comments_enabled": {
            "type": "boolean",
            "description": "Whether comments are enabled on the gist."
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A GitHub API object."
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether the gist content was truncated."
          },
          "forks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The list of forks for the gist."
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The commit history of the gist."
          }
        },
        "additionalProperties": true,
        "description": "A gist summary record."
      }
    },
    {
      "id": "gist.create_gist_comment",
      "service": "gist",
      "name": "create_gist_comment",
      "description": "Create a comment on a GitHub gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to comment on."
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "description": "The comment body text."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId",
          "body"
        ],
        "description": "The input payload for creating a gist comment."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier of the comment."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the comment."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the comment."
          },
          "body": {
            "type": "string",
            "description": "The body text of the comment."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the comment."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the comment."
          },
          "author_association": {
            "type": "string",
            "description": "The author's association with the gist repository."
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A gist comment record."
      }
    },
    {
      "id": "gist.delete_gist",
      "service": "gist",
      "name": "delete_gist",
      "description": "Delete a GitHub gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to delete."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for deleting a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "deleted": {
            "const": true,
            "type": "boolean",
            "description": "Whether the item was deleted successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "deleted"
        ],
        "description": "The output payload for deleting a gist."
      }
    },
    {
      "id": "gist.delete_gist_comment",
      "service": "gist",
      "name": "delete_gist_comment",
      "description": "Delete a GitHub gist comment.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID that owns the comment."
          },
          "commentId": {
            "type": "integer",
            "minimum": 1,
            "description": "The numeric gist comment ID."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for deleting a gist comment."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "deleted": {
            "const": true,
            "type": "boolean",
            "description": "Whether the item was deleted successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "deleted"
        ],
        "description": "The output payload for deleting a gist comment."
      }
    },
    {
      "id": "gist.fork_gist",
      "service": "gist",
      "name": "fork_gist",
      "description": "Fork a GitHub gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to fork."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for forking a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the gist."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the gist."
          },
          "forks_url": {
            "type": "string",
            "description": "The API URL for listing gist forks."
          },
          "commits_url": {
            "type": "string",
            "description": "The API URL for listing gist commits."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the gist."
          },
          "git_pull_url": {
            "type": "string",
            "description": "The git pull URL for the gist."
          },
          "git_push_url": {
            "type": "string",
            "description": "The git push URL for the gist."
          },
          "html_url": {
            "type": "string",
            "description": "The HTML URL of the gist."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "filename": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "size": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "content": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "encoding": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist file record."
            },
            "description": "The files contained in the gist, keyed by filename."
          },
          "public": {
            "type": "boolean",
            "description": "Whether the gist is publicly visible."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the gist."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the gist."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "comments": {
            "type": "integer",
            "description": "The number of comments on the gist."
          },
          "comments_url": {
            "type": "string",
            "description": "The API URL for listing gist comments."
          },
          "comments_enabled": {
            "type": "boolean",
            "description": "Whether comments are enabled on the gist."
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A GitHub API object."
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether the gist content was truncated."
          },
          "forks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The list of forks for the gist."
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The commit history of the gist."
          }
        },
        "additionalProperties": true,
        "description": "A gist summary record."
      }
    },
    {
      "id": "gist.get_gist",
      "service": "gist",
      "name": "get_gist",
      "description": "Get a GitHub gist by id.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to fetch."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId"
        ],
        "description": "The input payload for fetching a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the gist."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the gist."
          },
          "forks_url": {
            "type": "string",
            "description": "The API URL for listing gist forks."
          },
          "commits_url": {
            "type": "string",
            "description": "The API URL for listing gist commits."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the gist."
          },
          "git_pull_url": {
            "type": "string",
            "description": "The git pull URL for the gist."
          },
          "git_push_url": {
            "type": "string",
            "description": "The git push URL for the gist."
          },
          "html_url": {
            "type": "string",
            "description": "The HTML URL of the gist."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "filename": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "size": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "content": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "encoding": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist file record."
            },
            "description": "The files contained in the gist, keyed by filename."
          },
          "public": {
            "type": "boolean",
            "description": "Whether the gist is publicly visible."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the gist."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the gist."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "comments": {
            "type": "integer",
            "description": "The number of comments on the gist."
          },
          "comments_url": {
            "type": "string",
            "description": "The API URL for listing gist comments."
          },
          "comments_enabled": {
            "type": "boolean",
            "description": "Whether comments are enabled on the gist."
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A GitHub API object."
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether the gist content was truncated."
          },
          "forks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The list of forks for the gist."
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The commit history of the gist."
          }
        },
        "additionalProperties": true,
        "description": "A gist summary record."
      }
    },
    {
      "id": "gist.get_gist_comment",
      "service": "gist",
      "name": "get_gist_comment",
      "description": "Get a GitHub gist comment by id.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID that owns the comment."
          },
          "commentId": {
            "type": "integer",
            "minimum": 1,
            "description": "The numeric gist comment ID."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId",
          "commentId"
        ],
        "description": "The input payload for fetching a gist comment."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier of the comment."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the comment."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the comment."
          },
          "body": {
            "type": "string",
            "description": "The body text of the comment."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the comment."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the comment."
          },
          "author_association": {
            "type": "string",
            "description": "The author's association with the gist repository."
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A gist comment record."
      }
    },
    {
      "id": "gist.get_gist_revision",
      "service": "gist",
      "name": "get_gist_revision",
      "description": "Get a specific revision of a GitHub gist.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID that owns the revision."
          },
          "sha": {
            "type": "string",
            "minLength": 1,
            "description": "The commit SHA for the revision to fetch."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId",
          "sha"
        ],
        "description": "The input payload for fetching a gist revision."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the gist."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the gist."
          },
          "forks_url": {
            "type": "string",
            "description": "The API URL for listing gist forks."
          },
          "commits_url": {
            "type": "string",
            "description": "The API URL for listing gist commits."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the gist."
          },
          "git_pull_url": {
            "type": "string",
            "description": "The git pull URL for the gist."
          },
          "git_push_url": {
            "type": "string",
            "description": "The git push URL for the gist."
          },
          "html_url": {
            "type": "string",
            "description": "The HTML URL of the gist."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "filename": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "size": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "content": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "encoding": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist file record."
            },
            "description": "The files contained in the gist, keyed by filename."
          },
          "public": {
            "type": "boolean",
            "description": "Whether the gist is publicly visible."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the gist."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the gist."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "comments": {
            "type": "integer",
            "description": "The number of comments on the gist."
          },
          "comments_url": {
            "type": "string",
            "description": "The API URL for listing gist comments."
          },
          "comments_enabled": {
            "type": "boolean",
            "description": "Whether comments are enabled on the gist."
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A GitHub API object."
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether the gist content was truncated."
          },
          "forks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The list of forks for the gist."
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The commit history of the gist."
          }
        },
        "additionalProperties": true,
        "description": "A gist summary record."
      }
    },
    {
      "id": "gist.list_gist_comments",
      "service": "gist",
      "name": "list_gist_comments",
      "description": "List comments for a GitHub gist.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID whose comments should be listed."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId"
        ],
        "description": "The input payload for listing gist comments."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "comments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "The unique identifier of the comment."
                },
                "node_id": {
                  "type": "string",
                  "description": "The global node ID of the comment."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the comment."
                },
                "body": {
                  "type": "string",
                  "description": "The body text of the comment."
                },
                "created_at": {
                  "type": "string",
                  "description": "The creation timestamp of the comment."
                },
                "updated_at": {
                  "type": "string",
                  "description": "The last updated timestamp of the comment."
                },
                "author_association": {
                  "type": "string",
                  "description": "The author's association with the gist repository."
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist comment record."
            },
            "description": "The comments posted on the gist."
          }
        },
        "additionalProperties": false,
        "required": [
          "comments"
        ],
        "description": "The output payload for listing gist comments."
      }
    },
    {
      "id": "gist.list_gist_commits",
      "service": "gist",
      "name": "list_gist_commits",
      "description": "List commit history for a GitHub gist.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID whose revision history should be listed."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId"
        ],
        "description": "The input payload for listing gist commits."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "commits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string",
                  "description": "The commit SHA of the gist revision."
                },
                "committed_at": {
                  "type": "string",
                  "description": "The timestamp when the commit was made."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the commit."
                },
                "change_status": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "description": "The total number of lines changed."
                    },
                    "additions": {
                      "type": "integer",
                      "description": "The number of lines added."
                    },
                    "deletions": {
                      "type": "integer",
                      "description": "The number of lines deleted."
                    }
                  },
                  "additionalProperties": true,
                  "description": "The change statistics for the commit."
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist commit record."
            },
            "description": "The commit history entries for the gist."
          }
        },
        "additionalProperties": false,
        "required": [
          "commits"
        ],
        "description": "The output payload for listing gist commits."
      }
    },
    {
      "id": "gist.list_gist_forks",
      "service": "gist",
      "name": "list_gist_forks",
      "description": "List forks for a GitHub gist.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID whose forks should be listed."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId"
        ],
        "description": "The input payload for listing gist forks."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "forks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the fork."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the fork."
                },
                "html_url": {
                  "type": "string",
                  "description": "The HTML URL of the fork."
                },
                "created_at": {
                  "type": "string",
                  "description": "The creation timestamp of the fork."
                },
                "updated_at": {
                  "type": "string",
                  "description": "The last updated timestamp of the fork."
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "owner": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "files": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "filename": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "language": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "raw_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "size": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "truncated": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "content": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "encoding": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true,
                    "description": "A gist file record."
                  },
                  "description": "The files in the forked gist."
                }
              },
              "additionalProperties": true,
              "description": "A gist fork record."
            },
            "description": "The fork records for the gist."
          }
        },
        "additionalProperties": false,
        "required": [
          "forks"
        ],
        "description": "The output payload for listing gist forks."
      }
    },
    {
      "id": "gist.list_my_gists",
      "service": "gist",
      "name": "list_my_gists",
      "description": "List gists visible to the authenticated GitHub user.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          },
          "since": {
            "type": "string",
            "description": "The ISO 8601 timestamp to filter gists updated after this time.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing gists."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "gists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the gist."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the gist."
                },
                "forks_url": {
                  "type": "string",
                  "description": "The API URL for listing gist forks."
                },
                "commits_url": {
                  "type": "string",
                  "description": "The API URL for listing gist commits."
                },
                "node_id": {
                  "type": "string",
                  "description": "The global node ID of the gist."
                },
                "git_pull_url": {
                  "type": "string",
                  "description": "The git pull URL for the gist."
                },
                "git_push_url": {
                  "type": "string",
                  "description": "The git push URL for the gist."
                },
                "html_url": {
                  "type": "string",
                  "description": "The HTML URL of the gist."
                },
                "files": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "filename": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "language": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "raw_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "size": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "truncated": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "content": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "encoding": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true,
                    "description": "A gist file record."
                  },
                  "description": "The files contained in the gist, keyed by filename."
                },
                "public": {
                  "type": "boolean",
                  "description": "Whether the gist is publicly visible."
                },
                "created_at": {
                  "type": "string",
                  "description": "The creation timestamp of the gist."
                },
                "updated_at": {
                  "type": "string",
                  "description": "The last updated timestamp of the gist."
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comments": {
                  "type": "integer",
                  "description": "The number of comments on the gist."
                },
                "comments_url": {
                  "type": "string",
                  "description": "The API URL for listing gist comments."
                },
                "comments_enabled": {
                  "type": "boolean",
                  "description": "Whether comments are enabled on the gist."
                },
                "owner": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "A GitHub API object."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "type": "boolean",
                  "description": "Whether the gist content was truncated."
                },
                "forks": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The list of forks for the gist."
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The commit history of the gist."
                }
              },
              "additionalProperties": true,
              "description": "A gist summary record."
            },
            "description": "The visible gists for the authenticated user."
          }
        },
        "additionalProperties": false,
        "required": [
          "gists"
        ],
        "description": "The output payload for listing the current user's gists."
      }
    },
    {
      "id": "gist.list_public_gists",
      "service": "gist",
      "name": "list_public_gists",
      "description": "List recent public GitHub gists.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          },
          "since": {
            "type": "string",
            "description": "The ISO 8601 timestamp to filter gists updated after this time.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing gists."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "gists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the gist."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the gist."
                },
                "forks_url": {
                  "type": "string",
                  "description": "The API URL for listing gist forks."
                },
                "commits_url": {
                  "type": "string",
                  "description": "The API URL for listing gist commits."
                },
                "node_id": {
                  "type": "string",
                  "description": "The global node ID of the gist."
                },
                "git_pull_url": {
                  "type": "string",
                  "description": "The git pull URL for the gist."
                },
                "git_push_url": {
                  "type": "string",
                  "description": "The git push URL for the gist."
                },
                "html_url": {
                  "type": "string",
                  "description": "The HTML URL of the gist."
                },
                "files": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "filename": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "language": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "raw_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "size": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "truncated": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "content": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "encoding": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true,
                    "description": "A gist file record."
                  },
                  "description": "The files contained in the gist, keyed by filename."
                },
                "public": {
                  "type": "boolean",
                  "description": "Whether the gist is publicly visible."
                },
                "created_at": {
                  "type": "string",
                  "description": "The creation timestamp of the gist."
                },
                "updated_at": {
                  "type": "string",
                  "description": "The last updated timestamp of the gist."
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comments": {
                  "type": "integer",
                  "description": "The number of comments on the gist."
                },
                "comments_url": {
                  "type": "string",
                  "description": "The API URL for listing gist comments."
                },
                "comments_enabled": {
                  "type": "boolean",
                  "description": "Whether comments are enabled on the gist."
                },
                "owner": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "A GitHub API object."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "type": "boolean",
                  "description": "Whether the gist content was truncated."
                },
                "forks": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The list of forks for the gist."
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The commit history of the gist."
                }
              },
              "additionalProperties": true,
              "description": "A gist summary record."
            },
            "description": "The public gists returned by GitHub."
          }
        },
        "additionalProperties": false,
        "required": [
          "gists"
        ],
        "description": "The output payload for listing public gists."
      }
    },
    {
      "id": "gist.list_starred_gists",
      "service": "gist",
      "name": "list_starred_gists",
      "description": "List gists starred by the authenticated GitHub user.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          },
          "since": {
            "type": "string",
            "description": "The ISO 8601 timestamp to filter gists updated after this time.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing gists."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "gists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the gist."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the gist."
                },
                "forks_url": {
                  "type": "string",
                  "description": "The API URL for listing gist forks."
                },
                "commits_url": {
                  "type": "string",
                  "description": "The API URL for listing gist commits."
                },
                "node_id": {
                  "type": "string",
                  "description": "The global node ID of the gist."
                },
                "git_pull_url": {
                  "type": "string",
                  "description": "The git pull URL for the gist."
                },
                "git_push_url": {
                  "type": "string",
                  "description": "The git push URL for the gist."
                },
                "html_url": {
                  "type": "string",
                  "description": "The HTML URL of the gist."
                },
                "files": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "filename": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "language": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "raw_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "size": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "truncated": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "content": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "encoding": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true,
                    "description": "A gist file record."
                  },
                  "description": "The files contained in the gist, keyed by filename."
                },
                "public": {
                  "type": "boolean",
                  "description": "Whether the gist is publicly visible."
                },
                "created_at": {
                  "type": "string",
                  "description": "The creation timestamp of the gist."
                },
                "updated_at": {
                  "type": "string",
                  "description": "The last updated timestamp of the gist."
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comments": {
                  "type": "integer",
                  "description": "The number of comments on the gist."
                },
                "comments_url": {
                  "type": "string",
                  "description": "The API URL for listing gist comments."
                },
                "comments_enabled": {
                  "type": "boolean",
                  "description": "Whether comments are enabled on the gist."
                },
                "owner": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "A GitHub API object."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "type": "boolean",
                  "description": "Whether the gist content was truncated."
                },
                "forks": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The list of forks for the gist."
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The commit history of the gist."
                }
              },
              "additionalProperties": true,
              "description": "A gist summary record."
            },
            "description": "The gists starred by the authenticated user."
          }
        },
        "additionalProperties": false,
        "required": [
          "gists"
        ],
        "description": "The output payload for listing starred gists."
      }
    },
    {
      "id": "gist.list_user_gists",
      "service": "gist",
      "name": "list_user_gists",
      "description": "List public gists for a GitHub user.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "minLength": 1,
            "description": "The GitHub username whose public gists should be listed."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of results per page."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "The page number to retrieve."
          },
          "since": {
            "type": "string",
            "description": "The ISO 8601 timestamp to filter gists updated after this time.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "required": [
          "username"
        ],
        "description": "The input payload for listing a user's gists."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "gists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the gist."
                },
                "url": {
                  "type": "string",
                  "description": "The API URL of the gist."
                },
                "forks_url": {
                  "type": "string",
                  "description": "The API URL for listing gist forks."
                },
                "commits_url": {
                  "type": "string",
                  "description": "The API URL for listing gist commits."
                },
                "node_id": {
                  "type": "string",
                  "description": "The global node ID of the gist."
                },
                "git_pull_url": {
                  "type": "string",
                  "description": "The git pull URL for the gist."
                },
                "git_push_url": {
                  "type": "string",
                  "description": "The git push URL for the gist."
                },
                "html_url": {
                  "type": "string",
                  "description": "The HTML URL of the gist."
                },
                "files": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "filename": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "language": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "raw_url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "size": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "truncated": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "content": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "encoding": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": true,
                    "description": "A gist file record."
                  },
                  "description": "The files contained in the gist, keyed by filename."
                },
                "public": {
                  "type": "boolean",
                  "description": "Whether the gist is publicly visible."
                },
                "created_at": {
                  "type": "string",
                  "description": "The creation timestamp of the gist."
                },
                "updated_at": {
                  "type": "string",
                  "description": "The last updated timestamp of the gist."
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comments": {
                  "type": "integer",
                  "description": "The number of comments on the gist."
                },
                "comments_url": {
                  "type": "string",
                  "description": "The API URL for listing gist comments."
                },
                "comments_enabled": {
                  "type": "boolean",
                  "description": "Whether comments are enabled on the gist."
                },
                "owner": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "login": {
                          "type": "string",
                          "description": "The GitHub username of the gist owner."
                        },
                        "id": {
                          "type": "integer",
                          "description": "The numeric user ID."
                        },
                        "node_id": {
                          "type": "string",
                          "description": "The global node ID of the user."
                        },
                        "avatar_url": {
                          "type": "string",
                          "description": "The URL of the user avatar image."
                        },
                        "html_url": {
                          "type": "string",
                          "description": "The HTML URL of the user profile."
                        },
                        "url": {
                          "type": "string",
                          "description": "The API URL of the user."
                        },
                        "type": {
                          "type": "string",
                          "description": "The account type of the user."
                        },
                        "site_admin": {
                          "type": "boolean",
                          "description": "Whether the user is a GitHub site administrator."
                        }
                      },
                      "additionalProperties": true,
                      "description": "A gist owner record."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "A GitHub API object."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "type": "boolean",
                  "description": "Whether the gist content was truncated."
                },
                "forks": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The list of forks for the gist."
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A GitHub API object."
                  },
                  "description": "The commit history of the gist."
                }
              },
              "additionalProperties": true,
              "description": "A gist summary record."
            },
            "description": "The public gists for the requested user."
          }
        },
        "additionalProperties": false,
        "required": [
          "gists"
        ],
        "description": "The output payload for listing a user's gists."
      }
    },
    {
      "id": "gist.star_gist",
      "service": "gist",
      "name": "star_gist",
      "description": "Star a GitHub gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to star."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for starring a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "starred": {
            "const": true,
            "type": "boolean",
            "description": "Whether the gist is now starred."
          }
        },
        "additionalProperties": false,
        "required": [
          "starred"
        ],
        "description": "The output payload for starring a gist."
      }
    },
    {
      "id": "gist.unstar_gist",
      "service": "gist",
      "name": "unstar_gist",
      "description": "Unstar a GitHub gist.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to unstar."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for unstarring a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "starred": {
            "const": false,
            "type": "boolean",
            "description": "Whether the gist is now unstarred."
          }
        },
        "additionalProperties": false,
        "required": [
          "starred"
        ],
        "description": "The output payload for unstarring a gist."
      }
    },
    {
      "id": "gist.update_gist",
      "service": "gist",
      "name": "update_gist",
      "description": "Update a GitHub gist description or files.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID to update."
          },
          "description": {
            "type": "string",
            "description": "The new gist description."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string",
                      "description": "The updated text content for the file."
                    },
                    "filename": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The new filename for the file."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "description": "The input for updating a gist file."
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": "Updated file entries keyed by filename. Use null to delete a file."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId"
        ],
        "description": "The input payload for updating a gist."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the gist."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the gist."
          },
          "forks_url": {
            "type": "string",
            "description": "The API URL for listing gist forks."
          },
          "commits_url": {
            "type": "string",
            "description": "The API URL for listing gist commits."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the gist."
          },
          "git_pull_url": {
            "type": "string",
            "description": "The git pull URL for the gist."
          },
          "git_push_url": {
            "type": "string",
            "description": "The git push URL for the gist."
          },
          "html_url": {
            "type": "string",
            "description": "The HTML URL of the gist."
          },
          "files": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "filename": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "size": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "truncated": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "content": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "encoding": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A gist file record."
            },
            "description": "The files contained in the gist, keyed by filename."
          },
          "public": {
            "type": "boolean",
            "description": "Whether the gist is publicly visible."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the gist."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the gist."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "comments": {
            "type": "integer",
            "description": "The number of comments on the gist."
          },
          "comments_url": {
            "type": "string",
            "description": "The API URL for listing gist comments."
          },
          "comments_enabled": {
            "type": "boolean",
            "description": "Whether comments are enabled on the gist."
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A GitHub API object."
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether the gist content was truncated."
          },
          "forks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The list of forks for the gist."
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A GitHub API object."
            },
            "description": "The commit history of the gist."
          }
        },
        "additionalProperties": true,
        "description": "A gist summary record."
      }
    },
    {
      "id": "gist.update_gist_comment",
      "service": "gist",
      "name": "update_gist_comment",
      "description": "Update a GitHub gist comment.",
      "requiredScopes": [
        "gist"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "gistId": {
            "type": "string",
            "minLength": 1,
            "description": "The gist ID that owns the comment."
          },
          "commentId": {
            "type": "integer",
            "minimum": 1,
            "description": "The numeric gist comment ID."
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "description": "The updated comment body text."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "json",
              "raw",
              "base64"
            ],
            "description": "The media type format for the gist content."
          }
        },
        "additionalProperties": false,
        "required": [
          "gistId",
          "commentId",
          "body"
        ],
        "description": "The input payload for updating a gist comment."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier of the comment."
          },
          "node_id": {
            "type": "string",
            "description": "The global node ID of the comment."
          },
          "url": {
            "type": "string",
            "description": "The API URL of the comment."
          },
          "body": {
            "type": "string",
            "description": "The body text of the comment."
          },
          "created_at": {
            "type": "string",
            "description": "The creation timestamp of the comment."
          },
          "updated_at": {
            "type": "string",
            "description": "The last updated timestamp of the comment."
          },
          "author_association": {
            "type": "string",
            "description": "The author's association with the gist repository."
          },
          "user": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "login": {
                    "type": "string",
                    "description": "The GitHub username of the gist owner."
                  },
                  "id": {
                    "type": "integer",
                    "description": "The numeric user ID."
                  },
                  "node_id": {
                    "type": "string",
                    "description": "The global node ID of the user."
                  },
                  "avatar_url": {
                    "type": "string",
                    "description": "The URL of the user avatar image."
                  },
                  "html_url": {
                    "type": "string",
                    "description": "The HTML URL of the user profile."
                  },
                  "url": {
                    "type": "string",
                    "description": "The API URL of the user."
                  },
                  "type": {
                    "type": "string",
                    "description": "The account type of the user."
                  },
                  "site_admin": {
                    "type": "boolean",
                    "description": "Whether the user is a GitHub site administrator."
                  }
                },
                "additionalProperties": true,
                "description": "A gist owner record."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "description": "A gist comment record."
      }
    }
  ]
}
