Open Context Protocol is live! 🚀 Read the launch post
reposRequestPagesBuild

reposRequestPagesBuild

Request a GitHub Pages build

Details

  • Method: POST
  • Path: /repos/{owner}/{repo}/pages/builds
  • Operation ID: repos/request-pages-build

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "title": "Page Build Status",
  "description": "Page Build Status",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "example": "https://api.github.com/repos/github/hello-world/pages/builds/latest"
    },
    "status": {
      "type": "string",
      "example": "queued"
    }
  },
  "required": [
    "url",
    "status"
  ]
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('reposRequestPagesBuild', {
    # Add required parameters here
})