Redeem a gift code
redeem_giftRedeem a gift code the learner was given: what it gives is added to their account at once (credit, more cards in the bag, more open practices; any of them may be 0), and the code is used up for good. Returns what the code added and the new credit.
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_gift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |