delete-card-item
Remove a specific card from a Miro board by providing the board ID and card ID to manage board content effectively.
Instructions
Delete a specific card item from a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the card | |
| itemId | Yes | Unique identifier (ID) of the card that you want to delete |
Implementation Reference
- src/tools/deleteCardItem.ts:13-32 (handler)The main handler function that executes the tool logic: validates boardId and itemId, calls MiroClient API to delete the card item, and returns success or error response.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().deleteCardItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: `Card Item ${itemId} successfully deleted from board ${boardId}` }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/deleteCardItem.ts:7-12 (schema)Tool schema definition including name, description, and Zod input schema for boardId and itemId parameters.name: "delete-card-item", description: "Delete a specific card item from a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the card"), itemId: z.string().describe("Unique identifier (ID) of the card that you want to delete") },
- src/index.ts:128-128 (registration)Registers the deleteCardItemTool with the ToolBootstrapper instance..register(deleteCardItemTool)