get-shape-item
Retrieve specific shape details from a Miro board by providing the board ID and shape ID. Integrates with the Miro MCP server for efficient data access and management.
Instructions
Retrieve information about a specific shape item on a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the shape | |
| itemId | Yes | Unique identifier (ID) of the shape that you want to retrieve |
Implementation Reference
- src/tools/getShapeItem.ts:13-28 (handler)Handler function that retrieves a specific shape item from a Miro board using the MiroClient API, with input validation and error handling.fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } const result = await MiroClient.getApi().getShapeItem(boardId, itemId); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/getShapeItem.ts:9-12 (schema)Zod schema defining the input parameters: boardId and itemId.args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the shape"), itemId: z.string().describe("Unique identifier (ID) of the shape that you want to retrieve") },
- src/index.ts:158-158 (registration)Registration of the getShapeItemTool in the ToolBootstrapper chain..register(getShapeItemTool)