check_permissions
Check if the current user has permission to perform actions like add, delete, approve, or merge, optionally against codeowners patterns for a specific file path.
Instructions
check if the current user can perform a specific action (add, delete, approve, merge).
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": {
"action": "<action>"
},
"name": "check_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | the action to check | |
| path | No | optional file path to check permissions against codeowners pattern |