action_bet
Place a bet in Texas Holdem poker games on the MCP server by specifying player ID, table ID, and bet amount.
Instructions
do action bet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| player_id | Yes | ||
| table_id | Yes |
Implementation Reference
- src/mcpServer.ts:266-277 (handler)Handler for the 'action_bet' tool: sends 'performAction' request to poker server with action 'bet' and amount, then polls and formats updated table state.else if (request.params.name === "action_bet") { response = await sendPokerRequest('performAction', { playerId: args?.player_id, tableId: args?.table_id, action: 'bet', amount: args?.amount }); view_text = `Player ${args?.player_id} action: Bet $${args?.amount}\n Game state:\n`; // Get updated table state view_text += await pollUntilPlayerActive(args?.player_id, args?.table_id); }
- src/mcpServer.ts:102-114 (registration)Tool registration including name, description, and input schema for 'action_bet' in the ListTools response.{ name: "action_bet", description: "do action bet", inputSchema: { type: "object", properties: { player_id: { type: "string" }, table_id: { type: "string" }, amount: { type: "number" }, }, required: ["player_id", "table_id", 'amount'], }, },