Skip to main content
Glama

set_default_connector

Set a copied connector node as the default connector in Figma to streamline design automation through Cursor AI communication.

Instructions

Set a copied connector node as the default connector

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectorIdNoThe ID of the connector node to set as default

Implementation Reference

  • MCP tool registration for 'set_default_connector'. Includes inline input schema (optional connectorId string) and handler function that proxies the command to the Figma plugin via sendCommandToFigma for execution.
    "set_default_connector", "Set a copied connector node as the default connector", { connectorId: z.string().optional().describe("The ID of the connector node to set as default") }, async ({ connectorId }) => { try { const result = await sendCommandToFigma("set_default_connector", { connectorId }); return { content: [ { type: "text", text: `Default connector set: ${JSON.stringify(result)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error setting default connector: ${error instanceof Error ? error.message : String(error)}` } ] }; } } );
  • Zod schema definition for the tool's input parameters: optional connectorId (string).
    connectorId: z.string().optional().describe("The ID of the connector node to set as default") },
  • Handler function for the tool: sends 'set_default_connector' command with connectorId to Figma plugin via websocket proxy, returns success/error text content.
    try { const result = await sendCommandToFigma("set_default_connector", { connectorId }); return { content: [ { type: "text", text: `Default connector set: ${JSON.stringify(result)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error setting default connector: ${error instanceof Error ? error.message : String(error)}` } ] }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andreycretsu/cursor-talk-to-figma-mcp-main'

If you have feedback or need assistance with the MCP directory API, please join our Discord server