Get Pull Request Diff
get_pull_request_diffRetrieve the unified diff of a pull request, optionally filtered to a specific file path, to review code changes efficiently.
Instructions
Get diff for a pull request.
Args: repo_slug: Repository slug pull_request_id: Pull request ID workspace: Workspace name (optional, defaults to configured workspace) path: Filter diff to a specific file path to reduce token usage (optional). Example: "src/middlewares/authorizationMiddleware.ts"
Returns: Unified diff as string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| repo_slug | Yes | ||
| workspace | No | ||
| pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |