Redeem a promo code
redeem_codeRedeem a promo code: it raises this account's free-review allowance to the code's own figure (it never lowers what the account already has). Call it when the user hands you a code or an invite link – either works here, send it through untouched, the code is extracted server-side. Sources, cheapest first: the file ~/.ohmybug/invite that an invite link writes during install, then the user in chat. Never invent one. A live invite to a team that is open to any login is not redeemed here: the answer names the team, and the user joins on their account page.
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": {
"code": "<code>"
},
"name": "redeem_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The promo code, or the whole invite link that carries it (…/?promo=CODE), exactly as the user gave it |