Add or change a leaderboard
define_boardAdd a leaderboard to one of the player's hosted games, or change one by its key (up to 20): which way is better, how a score reads, its bounds, the wait between scores, and whether only the game's own server sends scores (trusted). The game fills it with the SDK's scores.submit(key, value).
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": {
"slug": "<slug>",
"board": "<board>"
},
"name": "define_board"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The game's address on Player Two (playertwo.lol/game/<slug>). | |
| board | Yes |