get-text-item
Retrieve specific text item details from a Miro board by providing the board and item IDs. Use this tool to access and manage text content efficiently within the Miro MCP server.
Instructions
Retrieve information about a specific text item on a Miro board
Input 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 |
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 text item",
"type": "string"
},
"itemId": {
"description": "Unique identifier (ID) of the text item that you want to retrieve",
"type": "string"
}
},
"required": [
"boardId",
"itemId"
],
"type": "object"
}
Implementation Reference
- src/tools/getTextItem.ts:13-28 (handler)The handler function that executes the tool: validates inputs, calls Miro API to get text item, returns 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:9-12 (schema)Input schema using Zod for boardId and itemId parameters.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)Registration of the getTextItemTool in the ToolBootstrapper chain..register(getTextItemTool)
- src/tools/getTextItem.ts:7-8 (schema)Tool name and description definition.name: "get-text-item", description: "Retrieve information about a specific text item on a Miro board",