unflag
Remove a flag from a specified cell on the Minesweeper board. Requires row and column inputs to identify the target cell for action.
Instructions
Remove the 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:88-90 (handler)Handler logic for the 'unflag' tool: sets URL parameters 'unflag=1' and 'pos=row,col' before fetching the updated game board image from the external game server.} else if (request.params.name === "unflag") { url.searchParams.set("unflag", "1"); url.searchParams.set("pos", `${row},${col}`);
- src/index.ts:62-69 (schema)Input schema definition for the 'unflag' tool, specifying required numeric 'row' and 'col' parameters.inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], },
- src/index.ts:59-70 (registration)Registration of the 'unflag' tool in the ListTools response, including name, description, and input schema.{ name: "unflag", description: "Remove the flag at a cell on the Minesweeper board", inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], }, },