update-board-member
Modify a board member's role or status on a Miro board to manage team permissions and access levels.
Instructions
Update a specific member's role or status on a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | ID of the board | |
| memberId | Yes | ID of the board member to update | |
| role | No | New role for the board member | |
| status | No | New status for the board member |
Implementation Reference
- src/tools/updateBoardMember.ts:15-40 (handler)Handler function that validates inputs, constructs changes object, calls MiroClient to update board member, and returns the result or error.fn: async ({ boardId, memberId, role, status }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!memberId) { return ServerResponse.error("Member ID is required"); } if (!role && !status) { return ServerResponse.error("At least one of role or status must be provided"); } const memberChanges: any = {}; if (role) memberChanges.role = role; if (status) memberChanges.status = status; const result = await MiroClient.getApi().updateBoardMember(boardId, memberId, memberChanges); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { process.stderr.write(`Error updating board member: ${error}\n`); return ServerResponse.error(error); } }
- src/tools/updateBoardMember.ts:9-14 (schema)Zod schema defining input parameters for the update-board-member tool: boardId (required string), memberId (required string), role (optional enum), status (optional enum).args: { boardId: z.string().describe("ID of the board"), memberId: z.string().describe("ID of the board member to update"), role: z.enum(['member', 'admin', 'owner']).optional().nullish().describe("New role for the board member"), status: z.enum(['active', 'pending', 'blocked']).optional().nullish().describe("New status for the board member") },
- src/index.ts:177-177 (registration)Registers the updateBoardMemberTool with the ToolBootstrapper in the main index file..register(updateBoardMemberTool)