attach-tag
Link specific tags to items on a Miro board by specifying board, tag, and item IDs for organized content 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 | |
| itemId | Yes | Unique identifier (ID) of the item to which you want to attach the tag | |
| tagId | Yes | Unique identifier (ID) of the tag that you want to attach |
Implementation Reference
- src/tools/attachTag.ts:14-33 (handler)The asynchronous handler function that executes the tool logic: validates required parameters (boardId, tagId, itemId) and attaches the tag to the item using the MiroClient API.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)The ToolSchema definition including name, description, and Zod input schema for the attach-tag tool.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 instance with the ToolBootstrapper in the main server bootstrap process..register(attachTagTool)