Skip to main content
GitHub Access provides agent tools for GitHub organization and team management. Reference them in using @ mentions so your agent can answer GitHub access questions and make changes without a handoff. Ravenna Assistant uses the same tools. People are passed by email. If the agent only has a name, it finds the email with @User Lookup first. Teams are passed by name or slug.

Look up members and teams

Get member

Looks up a person’s account in the GitHub organization: their GitHub username, organization role, and whether the membership is active or a pending invitation.Tool name: @Get GitHub MemberInput fields:
  • user_email (required) - the person to look up.
Output data:
  • login - GitHub username.
  • name - public profile name.
  • org_role - ADMIN (owner) or MEMBER.
Common use cases:
  • Check whether someone is already in the organization before inviting them
  • Confirm a person’s current role before changing it
Lists invitations to the organization that haven’t been accepted yet, newest first, up to 50.Tool name: @List Pending GitHub InvitationsOutput data:
  • invitations - each invitation’s id, email or login, role, and invited_at.
Common use cases:
  • Check whether someone was already invited
  • Find the invitation to cancel
Lists the organization’s teams, up to 50.Tool name: @List GitHub TeamsInput fields:
  • search - only teams whose name or slug matches.
Output data:
  • teams - each team’s name and slug.
Common use cases:
  • Find the exact team name before adding or removing someone
Lists a team’s members with their GitHub username and team role, up to 100.Tool name: @List GitHub Team MembersInput fields:
  • team_name (required) - name or slug of the team.
  • include_child_teams - also list people who are on the team through a child team.
Output data:
  • members - each member’s login and role (MAINTAINER or MEMBER).
Common use cases:
  • Answer “who has access to this team’s repositories?”
  • Find a team’s maintainers to route an approval
Lists the GitHub teams a person is on, up to 50.Tool name: @List GitHub Teams for UserInput fields:
  • user_email (required) - the person.
  • search - only teams whose name or slug contains this text.
Output data:
  • teams - each team’s name and slug.
Common use cases:
  • Explain which repositories someone can reach through their teams
Checks whether a person is on a team, directly or through a child team, and with which role. A pending membership means they haven’t accepted the organization invitation yet, so they have no access.Tool name: @Check GitHub Team MembershipInput fields:
  • user_email (required) - the person to check.
  • team_name (required) - name or slug of the team.
Output data:
  • is_member - true only for an active membership.
Common use cases:
  • Check before adding or removing someone so the agent reports what actually changed

Manage members

Invites a person to the organization by email, optionally straight into teams. They become a member once they accept the email from GitHub. A team that can’t be found is skipped and listed in skipped_teams; the invitation still goes out.Tool name: @Invite GitHub MemberInput fields:
  • email (required) - who is invited.
  • role - MEMBER (default), or ADMIN to make them an owner.
  • team_names - teams they join once they accept.
Common use cases:
  • Invite a new engineer during onboarding
  • Invite someone who requested access to a team’s repositories
Example rule:

When someone asks for access to a GitHub team, use @Get GitHub Member to check whether they're in the organization. If they aren't, use @Invite GitHub Member with that team in team_names and tell them to accept the email from GitHub. If they are, use @Add User to GitHub Team.

Cancels a pending invitation to the organization.Tool name: @Cancel GitHub InvitationInput fields:
  • email - the email the invitation was sent to.
  • invitation_id - the invitation’s id from @List Pending GitHub Invitations. Required for an invitation sent to a GitHub username, which has no email.
Common use cases:
  • Withdraw an invitation sent to the wrong address
Makes a member an owner (ADMIN), or turns an owner back into a member (MEMBER). Owners have full control of the organization, its settings, and every repository.Tool name: @Set GitHub Organization RoleInput fields:
  • user_email (required) - whose role changes.
  • role (required) - ADMIN or MEMBER.
Common use cases:
  • Grant temporary owner rights after approval
  • Remove owner rights during a role change
Removes a person from the organization. They lose access to every organization repository and leave all of its teams.Tool name: @Remove GitHub MemberInput fields:
  • user_email (required) - who is removed.
Common use cases:
  • Remove GitHub access during offboarding

Manage teams

Adds a person to a team, which grants them the team’s repository access. For someone already on the team, it changes their role. The person needs a linked GitHub account and an active organization membership. See who can be added to a team.Tool name: @Add User to GitHub TeamInput fields:
  • user_email (required) - who is added.
  • team_name (required) - name or slug of the team.
  • role - MEMBER (default), or MAINTAINER to let them manage the team.
Common use cases:
  • Grant repository access by adding someone to the right team
  • Make someone a team maintainer
Example rule:

When someone asks for access to a GitHub repository, use @List GitHub Teams to find the team that owns it, then use @Check GitHub Team Membership. If they're not on it, use @Add User to GitHub Team and confirm what access the team grants.

Removes a person from a team. They lose the team’s repository access unless another team grants it. Only direct membership can be removed: someone on the team through a child team has to be removed from that child team.Tool name: @Remove User from GitHub TeamInput fields:
  • user_email (required) - who is removed.
  • team_name (required) - name or slug of the team.
Common use cases:
  • Take away team access when someone changes roles
Creates a team in the organization.Tool name: @Create GitHub TeamInput fields:
  • team_name (required) - the new team’s name.
  • description - what the team is for.
  • privacy - closed (default) is visible to every organization member; secret only to its members and owners.
Output data:
  • team_name - the created team.
Common use cases:
  • Create a team for a new project from a request
Renames a team or changes its description. Renaming also changes the team slug, which breaks @mentions and CODEOWNERS entries that use the old one.Tool name: @Update GitHub TeamInput fields:
  • team_name (required) - current name or slug of the team.
  • new_name - the team’s new name.
  • description - the team’s new description.
Common use cases:
  • Rename a team after a reorganization
Deletes a team. GitHub also deletes its child teams, and every member loses the repository access those teams granted.Tool name: @Delete GitHub TeamInput fields:
  • team_name (required) - name or slug of the team.
Common use cases:
  • Remove teams for finished projects
When Ravenna Assistant adds Invite GitHub Member, Add User to GitHub Team, or Set GitHub Organization Role to a rule, it asks how the tool should run. See tool execution policies.

Setup

1

Connect GitHub Access

2

Check the agent's tools

Open your agent’s settings and confirm the GitHub tools appear under Tools. A disconnected integration shows a warning instead.
3

Write a rule

Reference the tools with @ mentions in a , then test it on a real access request.

Best practices

  • Check before changing. Pair @Get GitHub Member or @Check GitHub Team Membership with the change tools so the agent reports what actually changed.
  • Find the exact team first. Use @List GitHub Teams before adding or removing someone, so the agent uses the exact team name.
  • Grant access through teams. Repository access comes from teams, so add people to the team that owns the repository.
  • Gate the destructive tools. Put @Remove GitHub Member, @Delete GitHub Team, and @Set GitHub Organization Role behind Requires approval in any rule an agent can reach on its own.
Last modified on November 30, 2026