flag
Mark a specific cell on the Minesweeper board as a potential mine by specifying its row and column coordinates using this tool.
Instructions
Place a flag at a cell on the Minesweeper board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | ||
| row | Yes |
Implementation Reference
- src/index.ts:85-87 (handler)Handler logic for executing the 'flag' tool: sets the game server URL parameters to place a flag at the given row and column.} else if (request.params.name === "flag") { url.searchParams.set("flag", "1"); url.searchParams.set("pos", `${row},${col}`);
- src/index.ts:50-57 (schema)Input schema for the 'flag' tool, requiring row and col as numbers.inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], },
- src/index.ts:47-58 (registration)Registration of the 'flag' tool in the ListToolsRequestSchema response.{ name: "flag", description: "Place a flag at a cell on the Minesweeper board", inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], }, },