Skip to content

feat: support DESIGN.md workflow for design system creation#359

Merged
davideast merged 1 commit into
mainfrom
feat/missing-tool-bindings
Jun 1, 2026
Merged

feat: support DESIGN.md workflow for design system creation#359
davideast merged 1 commit into
mainfrom
feat/missing-tool-bindings

Conversation

@davideast
Copy link
Copy Markdown
Collaborator

@davideast davideast commented Jun 1, 2026

We recently added the ability to create design systems from markdown files (DESIGN.md). This is a two-step workflow:

  1. Upload a markdown file describing the design language (colors, typography, spacing, etc.) to a project
  2. Create a design system from that uploaded file, which Stitch interprets and converts into actionable design tokens

SDK (domain classes)

const instance = await project.uploadDesignMd(btoa(myDesignMarkdown));
const ds = await project.createDesignSystemFromDesignMd(instance, "DESKTOP");
await ds.apply(screenInstances);

Agent (callTool / tool definitions)

Both tools are also registered in the tool definitions, so agents using callTool or the ADK/AI SDK adapters can discover and invoke them directly:

const instance = await client.callTool("upload_design_md", {
  projectId: "123",
  designMdBase64: btoa(markdown),
});

const ds = await client.callTool("create_design_system_from_design_md", {
  projectId: "123",
  selectedScreenInstance: { id: instance.id, sourceScreen: instance.sourceScreen },
  deviceType: "DESKTOP",
});

This brings the SDK to full MCP tool coverage (14/14) across both modalities.

Stitch recently added the ability to create design systems from markdown
files (DESIGN.md). This is a two-step workflow:

1. Upload a markdown file describing the design language to a project
2. Create a design system from that uploaded file, which Stitch interprets
   and converts into actionable design tokens

SDK (domain classes):

  const instance = await project.uploadDesignMd(btoa(markdown));
  const ds = await project.createDesignSystemFromDesignMd(instance, 'DESKTOP');

Agent (callTool / tool definitions):

Both tools are also registered in the tool definitions, so agents using
callTool or the ADK/AI SDK adapters can discover and invoke them directly.

This brings the SDK to full MCP tool coverage (14/14) across both modalities.
@davideast davideast changed the title feat: support Design.md workflow for design system creation feat: support DESIGN.md workflow for design system creation Jun 1, 2026
@davideast davideast merged commit 575a9fb into main Jun 1, 2026
10 checks passed
@davideast davideast deleted the feat/missing-tool-bindings branch June 1, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant