click
Interact with the Minesweeper board by selecting specific cells using row and column coordinates to reveal or flag tiles.
Instructions
Click at a cell on the Minesweeper board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | ||
| row | Yes |
Implementation Reference
- src/index.ts:82-84 (handler)Handler logic for the 'click' tool: sets the URL parameters to reveal the cell at the specified row and column by appending 'reveal=1' and 'pos=row,col' to the game API endpoint.} else if (request.params.name === "click") { url.searchParams.set("reveal", "1"); url.searchParams.set("pos", `${row},${col}`);
- src/index.ts:38-45 (schema)Input schema for the 'click' tool, defining 'row' and 'col' as required number properties.inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], },
- src/index.ts:35-46 (registration)Registration of the 'click' tool in the ListToolsRequestSchema handler, including name, description, and input schema.{ name: "click", description: "Click at a cell on the Minesweeper board", inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], }, },