Skip to main content
← All tools

GitHub CLI

Inspect GitHub pull requests from the command line

CollaborationSchema v1.0.0Maintained by mcclowes

Give your agents the context

Install GitHub CLI first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.

clip registry add gh --purpose "Inspect GitHub pull requests from the command line"
clip sync

Coverage: Pull request listing. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.

Agent validation

This schema hasn't been run against its tool by an agent yet.

How validation works ↗

what's described

Capabilities

Read operation

gh pr list

List pull requests in a repository.

gh pr list --repo OWNER/REPO --limit 20 --json number,title,url,state

Inspect the source

Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.

Full capability document
{
  "name": "gh",
  "version": "2.x",
  "description": "Selected GitHub pull request inspection commands. Requires existing gh authentication. Partial community schema.",
  "command_layout": "flat",
  "output": {
    "tty": "text",
    "piped": "text"
  },
  "commands": [
    {
      "name": "pr list",
      "description": "List pull requests in a repository.",
      "mutating": false,
      "args": [
        {
          "name": "--repo",
          "type": "string",
          "description": "Repository in OWNER/REPO form."
        },
        {
          "name": "--state",
          "type": "string",
          "enum": [
            "open",
            "closed",
            "merged",
            "all"
          ],
          "default": "open"
        },
        {
          "name": "--limit",
          "type": "integer",
          "default": 30
        },
        {
          "name": "--json",
          "type": "string",
          "description": "Comma-separated fields, such as number,title,url,state."
        }
      ],
      "examples": [
        "gh pr list --repo OWNER/REPO --limit 20 --json number,title,url,state"
      ],
      "output_fields": [
        {
          "name": "number",
          "type": "integer"
        },
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        },
        {
          "name": "state",
          "type": "string"
        }
      ]
    }
  ]
}

View source and propose an update ↗

SHA-256: c4aa048ad5c7b0c9c77936b494cdafd1264fbabe30a9d0e5acb76f4be67659e5