get-connectors
Retrieve all connectors from a Miro board to access connection data between board elements for analysis or integration purposes.
Instructions
Retrieve all connectors on a specific Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board whose connectors you want to retrieve | |
| limit | No | Maximum number of connectors to return (default: 50) | |
| cursor | No | Cursor for pagination |
Implementation Reference
- src/tools/getConnectors.ts:14-29 (handler)The handler function that implements the logic for the 'get-connectors' tool. It validates the boardId, prepares query parameters, calls the MiroClient API to retrieve connectors, and returns the result or error.fn: async ({ boardId, limit, cursor }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } const queryParams: { limit?: string; cursor?: string } = {}; if (limit) queryParams.limit = limit.toString(); if (cursor) queryParams.cursor = cursor; const connectorsData = await MiroClient.getApi().getConnectors(boardId, queryParams); return ServerResponse.text(JSON.stringify(connectorsData, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/getConnectors.ts:6-13 (schema)The schema definition for the 'get-connectors' tool, including name, description, and Zod-based input schema for parameters.const getConnectorsTool: ToolSchema = { name: "get-connectors", description: "Retrieve all connectors on a specific Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board whose connectors you want to retrieve"), limit: z.number().optional().nullish().describe("Maximum number of connectors to return (default: 50)"), cursor: z.string().optional().nullish().describe("Cursor for pagination") },
- src/index.ts:130-130 (registration)Registration of the 'get-connectors' tool via ToolBootstrapper's register method in the main index file..register(getConnectorsTool)