Agent skill

Upload to Stitch Skill: Send Images, HTML and Markdown to a Project

The upload-to-stitch skill uses a Python script to send PNG, JPEG, WebP, HTML and Markdown files to a Stitch project over HTTP, avoiding the MCP base64 token limit.

Install
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the upload-to-stitch skill?

The upload-to-stitch skill exists because a model cannot push even a small file through MCP: base64 encoding exceeds its output limit of roughly 16K tokens. The skill runs a Python script that reads the file and posts it to Stitch over HTTP, after you approve the file list.

It sits in the stitch-design plugin. Its description says to use it for any visual asset, HTML page or design document going into Stitch, especially when direct MCP calls fail or truncate.

The SKILL.md gives the reason plainly. Base64 encoding of even a small file is larger than the roughly 16K token output limit of the model, so the script reads the file itself and sends it directly over HTTP.

The three steps

  1. Identify the target project. The agent calls list_projects to find the right project ID.
  2. Get the API key. The agent looks in your active MCP server configuration, and if it cannot find or open it, it must ask you for the Stitch API key rather than continue.
  3. Run the script. First the agent shows you the file paths, sizes and types and waits for explicit approval.

Supported files and script options

ExtensionSent as
pngimage/png
jpg, jpegimage/jpeg
webpimage/webp
html, htmtext/html
mdtext/markdown

The script detects the type from the extension. It requires a project ID, a file path and an API key, and accepts optional api-url, title and generated-by values.

Who the upload-to-stitch skill is for

Best for

  • Anyone bringing a mockup, screenshot or exported page into a Stitch project.
  • Workflows that need a design document, HTML page or visual asset uploaded into Stitch.
  • Route-based uploads, where the title argument is set to a path such as /inbox.

Not for

  • Creating screens from text. The generate-design skill handles prompts, and enhance-prompt sharpens them first.
  • Formats beyond the five listed types.
  • Setups where you cannot supply a Stitch API key. Related: design-md.

Use it with UiChemy

This skill moves files into Stitch, not into WordPress. For a design that should become a WordPress site, UiChemy can build from Figma, Composer or AI to WordPress. Click Get Started on uichemy.com. Related: image-to-code.