get-tag
Retrieve detailed information about a specific tag on a Miro board by providing the board ID and tag ID.
Instructions
Retrieve information about a specific tag on a Miro board
Input 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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"boardId": {
"description": "Unique identifier (ID) of the board that contains the tag",
"type": "string"
},
"tagId": {
"description": "Unique identifier (ID) of the tag that you want to retrieve",
"type": "string"
}
},
"required": [
"boardId",
"tagId"
],
"type": "object"
}
Implementation Reference
- src/tools/getTag.ts:13-28 (handler)The asynchronous handler function for the 'get-tag' tool. It validates inputs, fetches the tag data from Miro API using the provided boardId and tagId, stringifies the result as JSON, or returns an error response.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 arguments for the 'get-tag' tool: boardId and tagId as strings with descriptions.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:66-66 (registration)Import statement for the getTagTool module.import getTagTool from './tools/getTag.js';
- src/index.ts:166-166 (registration)Registers the getTagTool with the ToolBootstrapper instance..register(getTagTool)