get-image-item
Retrieve detailed information about a specific image on a Miro board by providing the board ID and image item ID.
Instructions
Retrieve information about a specific image item on a Miro board
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the image | |
| itemId | Yes | Unique identifier (ID) of the image 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 image",
"type": "string"
},
"itemId": {
"description": "Unique identifier (ID) of the image that you want to retrieve",
"type": "string"
}
},
"required": [
"boardId",
"itemId"
],
"type": "object"
}
Implementation Reference
- src/tools/getImageItem.ts:13-29 (handler)The main handler function that executes the tool's logic: validates inputs, fetches the image item via MiroClient API, and returns the JSON response 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"); } // Use generic getItem for image item const result = await MiroClient.getApi().getImageItem(boardId, itemId); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/getImageItem.ts:9-12 (schema)Zod input schema defining the required string parameters: boardId and itemId.args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the image"), itemId: z.string().describe("Unique identifier (ID) of the image that you want to retrieve") },
- src/index.ts:153-153 (registration)Registers the get-image-item tool with the ToolBootstrapper server..register(getImageItemTool)