attach-tag
Attach tags to items on Miro boards to organize and categorize content for better workflow management.
Instructions
Attach a tag to 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 attach | |
| itemId | Yes | Unique identifier (ID) of the item to which you want to attach the tag |
Implementation Reference
- src/tools/attachTag.ts:14-33 (handler)The async function that implements the 'attach-tag' tool logic: validates required inputs (boardId, tagId, itemId), calls Miro API to attach tag to item, 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"); } await MiroClient.getApi().attachTagToItem(boardId, itemId, tagId); return ServerResponse.text(JSON.stringify({ success: true, message: "Tag attached successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/attachTag.ts:6-13 (schema)ToolSchema definition for 'attach-tag' including name, description, and Zod schemas for input parameters: boardId, tagId, itemId.const attachTagTool: ToolSchema = { name: "attach-tag", description: "Attach a tag to 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 attach"), itemId: z.string().describe("Unique identifier (ID) of the item to which you want to attach the tag") },
- src/index.ts:170-170 (registration)Registers the attachTagTool with the ToolBootstrapper instance..register(attachTagTool)