get-text-item
Retrieve specific text item details from a Miro board using board and item IDs to access content information.
Instructions
Retrieve information about a specific text item on a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the text item | |
| itemId | Yes | Unique identifier (ID) of the text item that you want to retrieve |
Implementation Reference
- src/tools/getTextItem.ts:13-28 (handler)The handler function that executes the tool logic: validates inputs, fetches the text item data from Miro API using boardId and itemId, and returns formatted JSON or error.fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } const textData = await MiroClient.getApi().getTextItem(boardId, itemId); return ServerResponse.text(JSON.stringify(textData, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/getTextItem.ts:6-12 (schema)Tool schema defining the name, description, and input arguments with Zod validation schemas for boardId and itemId.const getTextItemTool: ToolSchema = { name: "get-text-item", description: "Retrieve information about a specific text item on a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the text item"), itemId: z.string().describe("Unique identifier (ID) of the text item that you want to retrieve") },
- src/index.ts:147-147 (registration)Registers the get-text-item tool with the ToolBootstrapper instance..register(getTextItemTool)