delete_board
Remove a custom Minesweeper board by specifying its unique ID. This tool enables users to manage and delete boards efficiently within the Minesweeper MCP Server.
Instructions
Delete a Minesweeper board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | ID of the board to delete |
Implementation Reference
- src/index.ts:294-308 (handler)The handler logic for the 'delete_board' tool, which calls the game's deleteBoard method and returns a success or not-found message.case 'delete_board': { const { boardId } = args as { boardId: string }; const deleted = this.game.deleteBoard(boardId); return { content: [ { type: 'text', text: deleted ? `Successfully deleted board '${boardId}'.` : `Board '${boardId}' not found.`, }, ], }; }
- src/index.ts:153-162 (schema)Input schema definition for the 'delete_board' tool, specifying the required boardId parameter.inputSchema: { type: 'object', properties: { boardId: { type: 'string', description: 'ID of the board to delete', }, }, required: ['boardId'], },
- src/index.ts:150-163 (registration)Registration of the 'delete_board' tool in the tools list returned by ListToolsRequest handler, including name, description, and schema.{ name: 'delete_board', description: 'Delete a Minesweeper board', inputSchema: { type: 'object', properties: { boardId: { type: 'string', description: 'ID of the board to delete', }, }, required: ['boardId'], }, },
- src/minesweeper.ts:216-218 (helper)Implementation of the deleteBoard method in MinesweeperGame class, which removes the board from the internal boards Map using its ID.deleteBoard(boardId: string): boolean { return this.boards.delete(boardId); }