delete-embed-item
Remove a specific embed item from a Miro board by providing the board and item identifiers.
Instructions
Delete a specific embed item from a Miro board
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"boardId": "<boardId>",
"itemId": "<itemId>"
},
"name": "delete-embed-item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the embed | |
| itemId | Yes | Unique identifier (ID) of the embed that you want to delete |
Implementation Reference
- src/tools/deleteEmbedItem.ts:13-28 (handler)The handler function that validates the boardId and itemId inputs, calls the MiroClient API to delete the specified embed item, and returns a success message 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().deleteEmbedItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: "Embed deleted successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } } - src/tools/deleteEmbedItem.ts:9-12 (schema)Input schema using Zod for validation of boardId and itemId parameters.
args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the embed"), itemId: z.string().describe("Unique identifier (ID) of the embed that you want to delete") }, - src/index.ts:164-164 (registration)Registers the delete-embed-item tool with the ToolBootstrapper.
.register(deleteEmbedItemTool) - src/index.ts:64-64 (registration)Imports the deleteEmbedItemTool for registration.
import deleteEmbedItemTool from './tools/deleteEmbedItem.js';