Skip to main content
Glama

MasterGo Magic MCP

Official

mcp__getDsl

Retrieve DSL data from MasterGo design files to analyze structure, understand component hierarchy, or extract design properties. Returns JSON format for parsing and includes rules for generating code. Supports fileId, layerId, or short link input.

Instructions

"Use this tool to retrieve the DSL (Domain Specific Language) data from MasterGo design files and the rules you must follow when generating code. This tool is useful when you need to analyze the structure of a design, understand component hierarchy, or extract design properties. You can provide either:

  1. fileId and layerId directly, or
  2. a short link (like https://{domain}/goto/LhGgBAK) This tool returns the raw DSL data in JSON format that you can then parse and analyze. This tool also returns the rules you must follow when generating code. The DSL data can also be used to transform and generate code for different frameworks."

Input Schema

NameRequiredDescriptionDefault
fileIdNoMasterGo design file ID (format: file/<fileId> in MasterGo URL). Required if shortLink is not provided.
layerIdNoLayer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL). Required if shortLink is not provided.
shortLinkNoShort link (like https://{domain}/goto/LhGgBAK).

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fileId": { "description": "MasterGo design file ID (format: file/<fileId> in MasterGo URL). Required if shortLink is not provided.", "type": "string" }, "layerId": { "description": "Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL). Required if shortLink is not provided.", "type": "string" }, "shortLink": { "description": "Short link (like https://{domain}/goto/LhGgBAK).", "type": "string" } }, "type": "object" }
Install Server

Other Tools from MasterGo Magic MCP

Related Tools

    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/mastergo-design/mastergo-magic-mcp'

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