add_collaborator
Grant repository access to GitHub users by adding collaborators with specified permissions for collaborative development.
Instructions
Add a collaborator to a repository.
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": {
"owner": "<owner>",
"repo": "<repo>",
"username": "<username>"
},
"name": "add_collaborator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| username | Yes | GitHub username to add | |
| permission | No | Permission level (pull, triage, push, maintain, admin) | push |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |