get-group
Retrieve information about a specific group on a Miro board by providing the board ID and group ID.
Instructions
Retrieve information about a specific group on a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | ID of the board that contains the group | |
| groupId | Yes | ID of the group that you want to retrieve |
Implementation Reference
- src/tools/getGroup.ts:13-30 (handler)The handler function executes the tool logic: validates inputs, calls MiroClient.getApi().getGroupById(boardId, groupId), stringifies and returns the result, or handles errors.fn: async ({ boardId, groupId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!groupId) { return ServerResponse.error("Group ID is required"); } const result = await MiroClient.getApi().getGroupById(boardId, groupId); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { process.stderr.write(`Error retrieving group: ${error}\n`); return ServerResponse.error(error); } }
- src/tools/getGroup.ts:7-12 (schema)Tool schema defining name, description, and input arguments schema using Zod for boardId and groupId.name: "get-group", description: "Retrieve information about a specific group on a Miro board", args: { boardId: z.string().describe("ID of the board that contains the group"), groupId: z.string().describe("ID of the group that you want to retrieve") },
- src/index.ts:180-180 (registration)Registers the getGroupTool with the ToolBootstrapper instance..register(getGroupTool)