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.
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": {
"public_id": "<public_id>",
"x": "<x>",
"y": "<y>"
},
"name": "game_flag"
}
}Input 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"], }, },