detach-tag
Remove a tag from a specific item on a Miro board by providing board, tag, and item identifiers.
Instructions
Detach a tag from an item on a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the tag and item | |
| tagId | Yes | Unique identifier (ID) of the tag that you want to detach | |
| itemId | Yes | Unique identifier (ID) of the item from which you want to detach the tag |
Implementation Reference
- src/tools/detachTag.ts:14-34 (handler)The main handler function that implements the detach-tag tool logic: validates required parameters (boardId, tagId, itemId), calls MiroClient.getApi().removeTagFromItem, and returns success or error response.fn: async ({ boardId, tagId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!tagId) { return ServerResponse.error("Tag ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } // Use the SDK method to detach a tag from an item await MiroClient.getApi().removeTagFromItem(boardId, itemId, tagId); return ServerResponse.text(JSON.stringify({ success: true, message: "Tag detached successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/detachTag.ts:6-13 (schema)ToolSchema defining the tool name, description, and input parameters schema using Zod for boardId, tagId, and itemId.const detachTagTool: ToolSchema = { name: "detach-tag", description: "Detach a tag from an item on a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the tag and item"), tagId: z.string().describe("Unique identifier (ID) of the tag that you want to detach"), itemId: z.string().describe("Unique identifier (ID) of the item from which you want to detach the tag") },
- src/index.ts:171-171 (registration)Registers the detachTagTool instance with the ToolBootstrapper server chain..register(detachTagTool)