game_flag
Mark potential mine locations on the Minesweeper board to prevent accidental detonation and track suspected bombs during gameplay.
Instructions
Toggle a flag on a cell.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public_id | Yes | ||
| x | Yes | ||
| y | Yes |
Implementation Reference
- src/tools/handlers.ts:105-112 (handler)Handler function for the 'game_flag' tool, which processes input and calls rails.flagCell.
async (input) => { const publicId = requireString( (input as { public_id?: unknown })?.public_id, "public_id" ); const { x, y } = requireCoordinates(input); return rails.flagCell(publicId, x, y); } - src/tools/handlers.ts:92-104 (registration)Definition and registration of the 'game_flag' tool.
{ name: "game_flag", description: "Toggle a flag on a cell.", inputSchema: { type: "object", properties: { public_id: { type: "string" }, x: { type: "integer" }, y: { type: "integer" }, }, required: ["public_id", "x", "y"], }, },