{
  "annotations": {
    "title": "Create or update file"
  },
  "description": "Create or update a single file in a GitHub repository. \nIf updating, you should provide the SHA of the file you want to update. Use this tool to create or update a file in a GitHub repository remotely; do not use it for local file operations.\n\nIn order to obtain the SHA of original file version before updating, use the following git command:\ngit rev-parse \u003cbranch\u003e:\u003cpath to file\u003e\n\nSHA MUST be provided for existing file updates.\n",
  "inputSchema": {
    "properties": {
      "branch": {
        "description": "Branch to create/update the file in",
        "type": "string"
      },
      "content": {
        "description": "Content of the file",
        "type": "string"
      },
      "message": {
        "description": "Commit message",
        "type": "string"
      },
      "owner": {
        "description": "Repository owner (username or organization)",
        "type": "string"
      },
      "path": {
        "description": "Path where to create/update the file",
        "type": "string"
      },
      "repo": {
        "description": "Repository name",
        "type": "string"
      },
      "sha": {
        "description": "The blob SHA of the file being replaced. Required if the file already exists.",
        "type": "string"
      }
    },
    "required": [
      "owner",
      "repo",
      "path",
      "content",
      "message",
      "branch"
    ],
    "type": "object"
  },
  "name": "create_or_update_file"
}