get-connectors
Retrieve all connectors on a Miro board by specifying its unique ID, with options for pagination and limiting results to streamline data retrieval.
Instructions
Retrieve all connectors on a specific Miro board
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board whose connectors you want to retrieve | |
| cursor | No | Cursor for pagination | |
| limit | No | Maximum number of connectors to return (default: 50) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"boardId": {
"description": "Unique identifier (ID) of the board whose connectors you want to retrieve",
"type": "string"
},
"cursor": {
"description": "Cursor for pagination",
"type": "string"
},
"limit": {
"description": "Maximum number of connectors to return (default: 50)",
"type": "number"
}
},
"required": [
"boardId"
],
"type": "object"
}
Implementation Reference
- src/tools/getConnectors.ts:14-29 (handler)The handler function that fetches connectors from the specified Miro board, supports pagination with limit and cursor, formats response as JSON, and handles errors.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)Tool schema definition including name, description, and Zod input schema for boardId (required), limit, and cursor.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)Registers the get-connectors tool with the ToolBootstrapper instance..register(getConnectorsTool)