get_pull_diff

Fetch the effective pull diff without manually ordering source and target refs.

Parameters

Name Type Required Description
repo string Yes Repository path. Format: teams/team_slug/repo_slug or username/repo_slug.
pull_number integer Yes Pull request number within the repo.
path string No Optional file or directory path filter.
offset integer No Number of changed files to skip. Defaults to 0.
limit integer No Maximum number of changed files to return.

Example

curl -X POST https://pearing.example/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_pull_diff",
      "arguments": {
        "repo": "teams/acme/webapp",
        "pull_number": 42,
        "limit": 25
      }
    }
  }'

Response

Returns pull metadata, changed file metadata, pagination fields, a diff stat, and unified diff content.