Invite someone to the workspace
invite_memberAsks to invite a person to the workspace by email, as a member, or, with action, to send a waiting invitation again or cancel it. Only owners and admins can do this. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. Once approved, CodeGene emails them the invitation (sending it again gives them a new link, and the earlier one stops working), or a cancelled invitation's link stops working.
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": {
"email": "<email>",
"reason": "<reason>"
},
"name": "invite_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Their email address: the person to invite, or the address a waiting invitation went to. | ||
| action | No | invite (the default): invite them. resend: send their waiting invitation again. cancel: cancel their waiting invitation. | |
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |