delete-connector
Remove a connector from a Miro board by specifying the board and connector IDs to clean up diagrams and workflows.
Instructions
Delete a specific connector from a Miro board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the connector | |
| connectorId | Yes | Unique identifier (ID) of the connector that you want to delete |
Implementation Reference
- src/tools/deleteConnector.ts:13-28 (handler)The main handler function that validates the boardId and connectorId inputs, calls the MiroClient API to delete the connector, and returns a success or error response.fn: async ({ boardId, connectorId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!connectorId) { return ServerResponse.error("Connector ID is required"); } await MiroClient.getApi().deleteConnector(boardId, connectorId); return ServerResponse.text(JSON.stringify({ success: true, message: "Connector deleted successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/deleteConnector.ts:9-12 (schema)Zod schema defining the input parameters: boardId and connectorId.args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the connector"), connectorId: z.string().describe("Unique identifier (ID) of the connector that you want to delete") },
- src/tools/deleteConnector.ts:6-29 (registration)The complete ToolSchema definition and export for the 'delete-connector' tool, including name, description, schema, and handler.const deleteConnectorTool: ToolSchema = { name: "delete-connector", description: "Delete a specific connector from a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the connector"), connectorId: z.string().describe("Unique identifier (ID) of the connector that you want to delete") }, fn: async ({ boardId, connectorId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!connectorId) { return ServerResponse.error("Connector ID is required"); } await MiroClient.getApi().deleteConnector(boardId, connectorId); return ServerResponse.text(JSON.stringify({ success: true, message: "Connector deleted successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } } }