Invite a player to a campaign
play_invite_campaign_playerSend a campaign invite to another user. Caller must be the campaign's GM (its owner or an accepted gamemaster); players, watchers, and admins get 403. Play rate-limits this endpoint (per-caller and per-campaign) to deter spam.
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": {
"campaignId": "<campaignId>",
"userId": "<userId>"
},
"name": "play_invite_campaign_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role to invite the user as. 'player' is the default and almost always what you want; 'watcher' is read-only; 'gamemaster' grants co-DM permissions. | player |
| userId | Yes | User id of the invitee. Required. Pair with play_find_friend if you only have a name or email; invite-by-email is not supported at this endpoint. | |
| campaignId | Yes | Campaign id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||