request_approval
Record a PR approval decision and receive a reusable approval token to authorize subsequent actions like pushing commits or opening a pull request.
Instructions
Record the approval decision and return an approval token if approved.
The server verifies that mandatory fields (summary, unified_diff, checks,
branch_plan) are present. If ``approved`` is True, a unique approval
identifier is generated and stored. This identifier must be provided to
tools that perform side effects (e.g., pushing commits or opening
pull requests).
The approval ID is multi-use: it can be consumed for both "push" and
"open_pr" actions, but each action can only be performed once per approval.
The approval record is only deleted when all allowed actions have been used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| checks | Yes | ||
| pr_body | No | ||
| summary | Yes | ||
| approved | Yes | ||
| pr_draft | Yes | ||
| pr_title | No | ||
| issue_url | No | ||
| branch_plan | Yes | ||
| unified_diff | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||