delete-image-item
Remove a specific image from a Miro board by providing the board and image IDs to manage visual content.
Instructions
Delete a specific image item from a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the image | |
| itemId | Yes | Unique identifier (ID) of the image that you want to delete |
Implementation Reference
- src/tools/deleteImageItem.ts:13-29 (handler)The handler function that performs the actual deletion of the image item using MiroClient's deleteItem API, with input validation and error handling.fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } // Use generic deleteItem await MiroClient.getApi().deleteItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: "Image deleted successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/deleteImageItem.ts:9-12 (schema)Zod schema defining the input parameters: boardId and itemId.args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the image"), itemId: z.string().describe("Unique identifier (ID) of the image that you want to delete") },
- src/index.ts:156-156 (registration)Registers the deleteImageItemTool (which defines the 'delete-image-item' tool) with the ToolBootstrapper for the MCP server..register(deleteImageItemTool)