game_chord
Chord a cell in Minesweeper to reveal adjacent safe cells and clear surrounding areas, helping players progress through the game efficiently.
Instructions
Chord a cell in a game.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public_id | Yes | ||
| x | Yes | ||
| y | Yes |
Implementation Reference
- src/tools/handlers.ts:128-135 (handler)The handler function for the game_chord tool which calls rails.chordCell.
async (input) => { const publicId = requireString( (input as { public_id?: unknown })?.public_id, "public_id" ); const { x, y } = requireCoordinates(input); return rails.chordCell(publicId, x, y); } - src/tools/handlers.ts:114-127 (registration)Registration of the game_chord tool, including its name, description, and input schema.
addTool( { name: "game_chord", description: "Chord a cell in a game.", inputSchema: { type: "object", properties: { public_id: { type: "string" }, x: { type: "integer" }, y: { type: "integer" }, }, required: ["public_id", "x", "y"], }, },