Skip to main content
Glama
Adobe XD MCP

Adobe XD MCP

by srayan-uxd

xd_export_artboard

Exports an artboard or sub-layer as clean JSON with frames, text, fills, effects, and transforms for rebuilding the design in Figma or another tool.

Instructions

Full-fidelity export of one artboard (or a sub-layer via nodeId) as clean JSON for rebuilding the design in another tool such as Figma: frames, rectangles (with corner radius), ellipses, lines, vector paths (SVG path data), boolean shapes, text (font, size, styled runs), fills (solid/gradient/image), strokes, shadows/effects, opacity, rotation, constraints, components, repeat grids and layout grids. Linked components (syncRef) are resolved to their real content. Text is normalised (top-left box, baselineY, line breaks as , alignment, autoResize, underline runs). The full transform matrix is given with transformOrigin top-left. Positions are relative to the parent; masks are in the masked group's local space. Images are referenced by imageRef; pass assetsDir to save them. Big screens are split into pages (page / pageCount / hasMore); each page lists whole top-level layers. Use nodeId to drill into one layer.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>",
      "artboard": "<artboard>"
    },
    "name": "xd_export_artboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesAbsolute path to a .xd file
pageNoPage of a large export (see pageCount / hasMore in the result).
depthNoMax nesting depth (default: everything). Layers below the limit are marked truncated:true; nothing is ever cut silently.
nodeIdNoExport only this layer id (from a previous export)
artboardYesArtboard id or name
assetsDirNoOptional absolute folder (inside the allowed roots). Referenced images are saved there as <imageRef>.<ext>.
semanticNamesNoAdd suggestedName to every layer (numeric suffixes stripped, text-based names).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • changedInput schema / properties / depth / description
      Previous value: -"Max nesting depth. Auto-reduced if the result is too large."New value: +"Max nesting depth (default: everything). Layers below the limit are marked truncated:true; nothing is ever cut silently."
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 0,
      +  "description": "Page of a large export (see pageCount / hasMore in the result).",
      +  "maximum": 1000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / semanticNames
      Added value: +{
      +  "default": false,
      +  "description": "Add suggestedName to every layer (numeric suffixes stripped, text-based names).",
      +  "type": "boolean"
      +}
  2. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the behavioral burden well: it explains linked-component resolution, text normalization, coordinate spaces, mask-local positioning, image references, and pagination behavior. It does not cover failure modes, permission constraints, or whether the operation is read-only, which keeps it below full transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core export purpose and every sentence contains relevant technical detail. It is dense and could be easier to scan with paragraph breaks, but it avoids filler and repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex export tool with no output schema, the description explains the returned JSON structure, coordinate conventions, image handling, and paging behavior. Parameter documentation is fully covered by the schema, and only secondary details such as error behavior or access requirements are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all seven parameters in detail. The description reinforces paging, nodeId drilling, and assetsDir image saving, but adds little meaning beyond what the schema already provides; a baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Full-fidelity export of one artboard (or a sub-layer via nodeId) as clean JSON for rebuilding the design in another tool such as Figma.' It also enumerates the exported design content, making the tool clearly distinct from image-rendering or SVG-export siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear usage context: use it to rebuild designs in another tool, use nodeId to drill into one layer, pass assetsDir to save images, and handle large screens through paging. It does not explicitly compare against alternatives such as xd_export_svg, xd_render_artboard, or xd_get_artboard, so there are no exclusions or routing rules.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.