approve_pull_request
Approve a pull request to mark changes as acceptable and ready to merge. Requires the pull request ID; repository and workspace are optional.
Instructions
Approve a pull request.
Use this tool to approve a pull request, indicating the changes are acceptable and ready to merge.
Args: pr_id: Pull request ID to approve. repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace.
Returns: JSON object confirming the approval.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pr_id": "<pr_id>"
},
"name": "approve_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | ||
| workspace | No | ||
| repository | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |