About Stitch SDK
Stitch SDK is an MCP server published by google-labs-code in the Browser category: generate UI screens from text prompts and extract their HTML and screenshots programmatically. Conduid read 16 tools from its source: apply_design_system, create_design_system, create_design_system_from_design_md, create_project, delete_project, download_assets and 10 more. No package is published for it, so it installs from a source checkout.
The repository has 1.9K stars and 142 forks, is licensed Apache-2.0, and its last commit was on 5 Nov 2026. The latest release is v0.1.1 (27 Apr 2026): v0.1.1 We are thrilled to announce the release of @google/stitch-sdk v0.1.1. It follows v0.0.3 (12 Mar 2026), and the 4 most recent releases go back to v0.0.1 (10 Mar 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include browser.
Install
git clone https://github.com/google-labs-code/stitch-sdkTools (16)
apply_design_systemApplies a design system to a list of screens. Use this tool when the user wants to update one or more screens to match the style of a design system.
This tool applies the selected design system's foundational design tokens (colors, fonts, shapes, etc.) to the chosen screens, modifying their appearance to align with the design system.| Parameter | Type | Description |
|---|---|---|
| assetId * | string | Required. The asset id of the design system to apply, can be fetched from 'list_design_systems'. Example: '15996705518239280238', without the `assets/` prefix. |
| projectId * | string | Required. The project ID of screen instances to edit, example: '4044680601076201931', without the `projects/` prefix. |
| selectedScreenInstances * | array | Required. The screen instances to edit, which is available in the Project info, fetched by `get_project`. |
create_design_systemCreates a new design system for a project. Use this tool when the user wants to set or update the overall visual theme, style, or branding of the application.
This includes configuring:
- Color Palette: Presets, custom primary colors, and saturation levels.
- Typography: Font families (e.g., Inter, Roboto, etc.).
- Shape: Corner roundness for UI elements.
- Appearance: Light and dark mode background colors.
- Design MD: Free-form design instructions in markdown.
This tool establishes the foundational design tokens that apply across all screens in the project.
**Instructions for Tool Call:**
* Call `update_design_system` tool immediately after this tool to apply the design system to the project, and display the design system in the UI.| Parameter | Type | Description |
|---|---|---|
| designSystem * | any | Required. The design system to create. |
| projectId | string | Optional. The project ID to create design system for, example: '4044680601076201931', without the `projects/` prefix. If empty, creates a global asset (not associated with any project). |
create_design_system_from_design_mdCreates a design system for a project, with user uploaded DESIGN.md file, and displays the design system in the UI.
**Instructions for Tool Call:**
* Should call `upload_design_md` tool first to upload DESIGN.md to a Stitch project.| Parameter | Type | Description |
|---|---|---|
| deviceType | string | Optional. The device type of the screen. |
| projectId * | string | Required. The project ID to update design system for, example: '4044680601076201931', without the `projects/` prefix. |
| selectedScreenInstance * | any | Required. The screen instance to create the design system from, which is created by UploadDesignMd RPC. |
create_projectCreates a new Stitch project. A project is a container for UI designs and frontend code.| Parameter | Type | Description |
|---|---|---|
| title | string | Optional. The title of the project. |
delete_projectDeletes a specific Stitch project using its project name.
**Instructions for Tool Call:**
* This action cannot be undone. Please confirm with "yes" or "no" to proceed.| Parameter | Type | Description |
|---|---|---|
| name * | string | Required. Identifier. The resource name of the project to delete. Format: `projects/{project}` Example: `projects/4044680601076201931` |
download_assetsDownload screens and assets to a local directory| Parameter | Type | Description |
|---|---|---|
| outputDir * | string | Output directory |
| projectId * | string | Project ID |
edit_screensEdits existing screens within a project using a text prompt.
**Instructions for Tool Call:**
* This action can take a few minutes to complete. Please be patient. DO NOT RETRY.
* If the tool call fails due to connection error, the process may still succeed.| Parameter | Type | Description |
|---|---|---|
| deviceType | string | Optional. The type of device that captured the screenshot, e.g., mobile or desktop. |
| modelId | string | Optional. The model to use for generation. |
| projectId * | string | Required. The project ID of screens to edit, example: '4044680601076201931', without the `projects/` prefix. |
| prompt * | string | Required. The input text to generate the screen from. |
| selectedScreenIds * | array | Required. The screen IDs of screens to edit, example: ['98b50e2ddc9943efb387052637738f61', '98b50e2ddc9943efb387052637738f62'], without the `screens/` prefix. |
generate_screen_from_textGenerates a new screen within a project from a text prompt.
**Instructions for Tool Call:**
* This action can take a few minutes to complete. Please be patient. DO NOT RETRY.
* If the tool fails with a timeout, don't retry. Instead, try to get the screen with `get_screen` method every 30 seconds for up to 10 times before giving up.
* If the tool call fails due to connection error, the generation process may still succeed. Please try to get the screen with `get_screen` method later.
**Output:**
* **`output_components`**: If `output_components` contains text, return it to the user. If `output_components` contains suggestions (e.g. "Yes, make them all"), present these suggestions to the user. If the user accepts one of the suggestions, call `generate_screen_from_text` again with `prompt` set to the accepted suggestion.| Parameter | Type | Description |
|---|---|---|
| designSystem | string | Optional. The design system id to use for generating the new screen, should always be configured for design consistency, via `get_project` or `list_assets` methods. If not provided, a default design system will be used. Example: `assets/15996705518239280238`. |
| deviceType | string | The type of device that captured the screenshot, e.g., mobile or desktop. |
| modelId | string | Optional. The model to use for generation. |
| projectId * | string | Required. The project ID to generate the screen for, example: '4044680601076201931', without the `projects/` prefix. |
| prompt * | string | Required. The input text to generate the screen from. |
generate_variantsGenerates variants of existing screens within a project using a text prompt.
**Instructions for Tool Call:**
* If the tool fails with a timeout, don't retry. Instead, try to get the screen with `get_screen` method every 30 seconds for up to 10 times before giving up.| Parameter | Type | Description |
|---|---|---|
| deviceType | string | Optional. The type of device that captured the screenshot, e.g., mobile or desktop. |
| modelId | string | Optional. The model to use for generation. |
| projectId * | string | Required. The project ID of screens to generate variants for, example: '4044680601076201931', without the `projects/` prefix. |
| prompt * | string | Required. The input text used to generate the variants. |
| selectedScreenIds * | array | Required. The screen ids of screen to generate variants for, example: ['98b50e2ddc9943efb387052637738f61', '98b50e2ddc9943efb387052637738f62'], without the `screens/` prefix. |
| variantOptions * | any | Required. The variant options for generation, including the number of variants, creative range, and aspects to focus on. |
get_projectRetrieves the details of a specific Stitch project using its project name.| Parameter | Type | Description |
|---|---|---|
| name * | string | Required. Identifier. The resource name of the project to retrieve. Format: `projects/{project}` Example: `projects/4044680601076201931` |
get_screenRetrieves the details of a specific screen within a project.| Parameter | Type | Description |
|---|---|---|
| name * | string | Required. Identifier. The resource name of the screen to retrieve. Format: `projects/{project}/screens/{screen}` Example: `projects/4044680601076201931/screens/98b50e2ddc9943efb387052637738f61` |
list_design_systemsLists all design systems for a given project.| Parameter | Type | Description |
|---|---|---|
| projectId | string | Optional. The project ID to list design systems for, example: '4044680601076201931', without the `projects/` prefix. If empty, lists all global design systems. |
list_projectsLists all Stitch projects accessible to the user. By default, it lists projects owned by the user.| Parameter | Type | Description |
|---|---|---|
| filter | string | Optional. A filter to apply to the list of projects, following a subset of AIP-160. This service supports filtering on the `view` field. Supported filters: * `view=owned`: Lists only projects owned by the user. This is the default behavior if no filter is specified. * `view=shared`: Lists only projects shared with the user. Example: `view=owned` |
list_screensLists all screens within a given Stitch project.| Parameter | Type | Description |
|---|---|---|
| projectId * | string | Required. Identifier. The project ID to list screens for, example: '4044680601076201931', without the `projects/` prefix. |
update_design_systemUpdates a design system for a project. Use this tool when the user wants to change the overall visual theme, style, or branding of the application.
This includes configuring:
- Color Palette: Presets, custom primary colors, and saturation levels.
- Typography: Font families (e.g., Inter, Roboto, etc.).
- Shape: Corner roundness for UI elements.
- Appearance: Light and dark mode background colors.
- Design MD: Free-form design instructions in markdown.
This tool establishes the foundational design tokens that apply across all screens in the project.| Parameter | Type | Description |
|---|---|---|
| designSystem * | any | Required. The design system to update. |
| name * | string | Required. Identifier. The resource name of the design system to update. Format: `assets/{asset_id}` Example: `assets/15996705518239280238` |
| projectId * | string | Required. The project ID to update design system for, example: '4044680601076201931', without the `projects/` prefix. |
upload_design_mdUploads DESIGN.md to a Stitch project. Use this tool when the user wants to create a design system from a DESIGN.md file.
**Instructions for Tool Call:**
* Call `create_design_system_from_design_md` tool immediately after this tool to create the design system from the uploaded DESIGN.md, and display the design system in the UI.| Parameter | Type | Description |
|---|---|---|
| designMdBase64 * | string | Required. The base64-encoded DESIGN.md content. The decoded content must be valid UTF-8; uploads with invalid UTF-8 bytes will be rejected. Run `base64 -w 0 ` to get the base64-encoded string. |
| projectId * | string | Required. The project ID to upload the DESIGN.md to, example: '4044680601076201931', without the `projects/` prefix. |
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.9K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by bun.lock.
- ✓No dynamic code executionScanned 39 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 5 callspackages/sdk/src/client.ts:492, packages/sdk/src/content-handler.ts:40, packages/sdk/src/download-handler.ts:203
- Writes or deletes files
- 7 callspackages/sdk/src/download-handler.ts:55, packages/sdk/src/download-handler.ts:59, packages/sdk/src/download-handler.ts:60
- Lockfile
- bun.lock
Pattern matches on the source text of 39 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.9K words, fetched 5 days ago. The original in the repository is authoritative.
Read full README