delete-text-item
Remove a text item from a Miro board by specifying the board ID and item ID to manage content effectively.
Instructions
Delete a specific text item from a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the text item | |
| itemId | Yes | Unique identifier (ID) of the text item that you want to delete |
Implementation Reference
- src/tools/deleteTextItem.ts:13-28 (handler)The asynchronous handler function that implements the core logic of the 'delete-text-item' tool. It validates inputs, calls the Miro API to delete the text item, and returns appropriate success or error responses.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().deleteTextItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: "Text item successfully deleted" })); } catch (error) { return ServerResponse.error(error); } }
- src/tools/deleteTextItem.ts:9-12 (schema)Zod schema defining the input parameters for the tool: boardId and itemId, both required strings with descriptions.args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the text item"), itemId: z.string().describe("Unique identifier (ID) of the text item that you want to delete") },
- src/index.ts:149-149 (registration)Registration of the deleteTextItemTool in the ToolBootstrapper chain in the main index file..register(deleteTextItemTool)