delete-image-item
Remove a specific image from a Miro board by specifying the board and image IDs using the Miro MCP server tool.
Instructions
Delete a specific image item from a Miro board
Input 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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"boardId": {
"description": "Unique identifier (ID) of the board that contains the image",
"type": "string"
},
"itemId": {
"description": "Unique identifier (ID) of the image that you want to delete",
"type": "string"
}
},
"required": [
"boardId",
"itemId"
],
"type": "object"
}
Implementation Reference
- src/tools/deleteImageItem.ts:13-29 (handler)The handler function that performs input validation and deletes the specified image item using the MiroClient's deleteItem method.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:6-12 (schema)Defines the tool's name, description, and input schema using Zod for boardId and itemId parameters.const deleteImageItemTool: ToolSchema = { name: "delete-image-item", description: "Delete a specific image item from a Miro board", 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:56-56 (registration)Imports the deleteImageItemTool for registration.import deleteImageItemTool from './tools/deleteImageItem.js';
- src/index.ts:156-156 (registration)Registers the delete-image-item tool with the ToolBootstrapper instance..register(deleteImageItemTool)