delete-tag
Remove a specific tag from a Miro board by providing the board ID and tag ID, ensuring cleaner and more organized board management.
Instructions
Delete a specific tag from 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 delete |
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 delete",
"type": "string"
}
},
"required": [
"boardId",
"tagId"
],
"type": "object"
}
Implementation Reference
- src/tools/deleteTag.ts:13-28 (handler)The main handler function for the 'delete-tag' tool. It validates inputs, calls MiroClient to delete the tag, and returns success or 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"); } await MiroClient.getApi().deleteTag(boardId, tagId); return ServerResponse.text(JSON.stringify({ success: true, message: "Tag deleted successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/deleteTag.ts:9-12 (schema)Zod schema defining the input arguments for the 'delete-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 delete") },
- src/index.ts:169-169 (registration)Registration of the 'delete-tag' tool using ToolBootstrapper.register() in the main index file..register(deleteTagTool)
- src/index.ts:69-69 (registration)Import of the deleteTagTool module in the main index file for registration.import deleteTagTool from './tools/deleteTag.js';