upload_design_md
Upload DESIGN.md content to a Stitch project so that a design system can be generated from the file's specifications.
Instructions
Uploads 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_mdtool immediately after this tool to create the design system from the uploaded DESIGN.md, and display the design system in the UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Required. The project ID to upload the DESIGN.md to, example: '4044680601076201931', without the `projects/` prefix. | |
| designMdBase64 | Yes | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional. The x position of the screen. | |
| y | No | Optional. The y position of the screen. | |
| id | No | Optional. The screen instance id. | |
| type | No | Optional. The type of screen instance. | |
| label | No | Optional. The screen label. | |
| width | No | Optional. The screen width. | |
| height | No | Optional. The screen height. | |
| hidden | No | Optional. User driven action hiding screen from the canvas. | |
| groupId | No | Optional. Group identifier for Genie Agent output grouping. Screens with the same groupId are rendered and interact as a group. | |
| groupName | No | Optional. Human-readable name for the group (e.g., "Warm Minimalism", "Ethereal Glow"). | |
| isResized | No | Optional. Whether this screen has been resized by the user. | |
| isFavourite | No | Optional. Whether this screen is marked as a favourite by the user. | |
| needsLayout | No | Optional. Whether this screen instance needs frontend layout positioning. Set by the PostProcessor when auto-linking screens that the agent generated but the frontend has not yet positioned on the canvas. | |
| sourceAsset | No | Optional. The resource name of the source asset. Format: assets/{asset} | |
| textContent | No | Optional. Text content for TEXT_INSTANCE nodes. | |
| sourceScreen | No | Optional. The resource name of the source screen. Format: projects/{project}/screens/{screen} | |
| variantScreenInstance | No | Optional. The variant Screen Instance. |