Create an invite link
invite_createCreate a join link for a flat so people can become flatmates, since the share code alone cannot be used to join. Each link lasts 14 days and allows up to 10 joins.
Instructions
Create a link that lets one or more people join the flat; this is the only way to add flatmates, because the share code alone does not allow joining. The link works for 14 days and for up to 10 joins, and a flat holds at most 20 active links (invite_limit_reached; free one with invite_revoke). Use it when the user wants to hand the link over themselves; to send it by email use invite_email instead, to see existing links use invites_list. Any member may call it. Not idempotent: every call creates a new link. Returns id, url and expiresAt. url is a secret that lets anyone who has it join the flat, so show it only to the user and never post it in chat, notes or logs. It cannot be read again later, because invites_list never returns it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invite_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. |