Create a game
create_gameSet up any game to play in this chat: board games, card games, dice games, word and guessing games, mysteries. Describe it with the building blocks below, or pass starter for a ready one (tic-tac-toe, four-in-a-row, gomoku, checkers, reversi, crazy-eights, go-fish, twenty-one, pig, sea-battle, hangman, twenty-questions). Playtable Pro games (mancala, nine-mens-morris, dots-and-boxes, liars-dice, codebreaker, gin-rummy, hearts, snakes-and-ladders) also need the player's pro_code. The server keeps the board, deals and hides cards, rolls dice and enforces turns, so the player can trust the game. The player gets an interactive board in the chat (and a link to play in a browser or invite friends). Returns game_id and agent_key; keep both for get_state and take_turn. You run the rules that aren't built in.
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": "create_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal | No | Cards dealt to each hand at the start. | |
| deck | No | "standard" (52, ids like AS, 10H, QC), "standard_jokers", "numbers:1-10x4", or a list of card labels or {label, suit, rank}. Adds a face-down deck, a face-up table and a hidden hand per seat. | |
| dice | No | Default die sides. | |
| about | No | The rules in a few sentences, shown to the player. Write them so you can follow them too. | |
| board | No | ||
| first | No | Seat name that goes first. | |
| piles | No | ||
| rules | No | Rules the server enforces for you. | |
| seats | No | Players in turn order. Default: Player (human) then Agent (agent). | |
| title | No | ||
| turns | No | alternate (default): one seat at a time. free: anyone acts anytime (guessing games, puzzles). | |
| pieces | No | Starting pieces. | |
| starter | No | A ready-made game. Other fields here override its setup (for example seats). | |
| counters | No | Scores and tallies: "score", or {name, per_seat: false, start}. | |
| pro_code | No | The player's Playtable Pro code, only for Pro games. Ask the player for it; never guess one. |