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:
- fileId and layerId directly, or
- 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
Name | Required | Description | Default |
---|---|---|---|
fileId | No | MasterGo design file ID (format: file/<fileId> in MasterGo URL). Required if shortLink is not provided. | |
layerId | No | 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. | |
shortLink | No | Short link (like https://{domain}/goto/LhGgBAK). |