get-tag
Retrieve specific tag details from Miro boards to access labeling information and organize visual content effectively.
Instructions
Retrieve information about a specific tag on a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the tag | |
| tagId | Yes | Unique identifier (ID) of the tag that you want to retrieve |
Implementation Reference
- src/tools/getTag.ts:13-28 (handler)The handler function that executes the 'get-tag' tool logic, validating inputs and calling MiroClient.getApi().getTag to retrieve tag information.fn: async ({ boardId, tagId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!tagId) { return ServerResponse.error("Tag ID is required"); } const result = await MiroClient.getApi().getTag(boardId, tagId); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/getTag.ts:9-12 (schema)Zod schema defining the input parameters for the 'get-tag' tool: boardId and tagId.args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the tag"), tagId: z.string().describe("Unique identifier (ID) of the tag that you want to retrieve") },
- src/index.ts:166-166 (registration)Registration of the 'get-tag' tool using ToolBootstrapper.register(getTagTool)..register(getTagTool)
- src/index.ts:66-66 (registration)Import statement for the getTagTool module used in registration.import getTagTool from './tools/getTag.js';