Smithery

create_or_update_file

Create or update a single file in a GitHub repository

Remote AndyManastorm/smithery-reference-servers

Other tools also called create_or_update_file? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "sha": {
      "type": "string",
      "description": "SHA of the file being replaced (required when updating existing files)"
    },
    "path": {
      "type": "string",
      "description": "Path where to create/update the file"
    },
    "repo": {
      "type": "string",
      "description": "Repository name"
    },
    "owner": {
      "type": "string",
      "description": "Repository owner (username or organization)"
    },
    "branch": {
      "type": "string",
      "description": "Branch to create/update the file in"
    },
    "content": {
      "type": "string",
      "description": "Content of the file"
    },
    "message": {
      "type": "string",
      "description": "Commit message"
    }
  }
}