delete-item
Remove a specific item from a Miro board by specifying the board ID and item ID for precise deletion.
Instructions
Delete a specific item from a Miro board
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the item | |
| itemId | Yes | Unique identifier (ID) of the item 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 item",
"type": "string"
},
"itemId": {
"description": "Unique identifier (ID) of the item that you want to delete",
"type": "string"
}
},
"required": [
"boardId",
"itemId"
],
"type": "object"
}
Implementation Reference
- src/tools/deleteItem.ts:13-32 (handler)The main handler function that performs input validation and calls the Miro API to delete the specified item from the board.fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } await MiroClient.getApi().deleteItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: `Item ${itemId} successfully deleted from board ${boardId}` }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/deleteItem.ts:6-12 (schema)ToolSchema defining the tool name, description, and Zod schemas for input arguments (boardId and itemId).const deleteItemTool: ToolSchema = { name: "delete-item", description: "Delete a specific item from a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the item"), itemId: z.string().describe("Unique identifier (ID) of the item that you want to delete") },
- src/index.ts:120-120 (registration)Registration of the deleteItemTool in the ToolBootstrapper chain..register(deleteItemTool)