Skip to content
google-labs-code avatar

Stitch::Upload To Stitch

Upload local images, mockups, HTML, and markdown files into a Stitch project, bypassing MCP token limits.

CCM score
64 of 100
skills.sh installs
12.5K
GitHub stars
14.4K
last updated
Nov 30, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers uploading local assets such as images, mockups, HTML, and markdown files to a chosen Stitch project
  • Uses a provided upload script that sends files directly over HTTP, since MCP base64 encoding exceeds model output limits
  • Requires finding the target projectId with list_projects and obtaining an API key before uploading
  • Designed for agents that need to push design files into Stitch without hitting the base64 output token ceiling

Install

$ npx -y skills add google-labs-code/stitch-skills --skill 'stitch::upload-to-stitch' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Upload-to-Stitch

Upload local assets (images, mockups, HTML, and markdown files) to a Stitch project using the provided upload script, which bypasses the MCP tool's base64 output token limits.

[!NOTE] The AI model cannot upload files via MCP tools directly because the base64 encoding of even a small file exceeds the model's output token limit (~16K tokens). This script reads the file and sends it directly over HTTP.

Steps

1. Identify Target Project

Use list_projects to find the correct projectId.

2. Get the API Key

Locate your active MCP server configuration file and extract the API key:

  • Antigravity: .gemini/antigravity/mcp_config.json or .gemini/jetski/mcp_config.json
  • Gemini CLI: ~/.gemini/settings.json or ~/.gemini/extensions/Stitch/gemini-extension.json
  • Claude Code: ~/.claude.json

Extract:

  • API Key: From the X-Goog-Api-Key header or auth argument
  • MCP URL (optional): From the httpUrl or endpoint argument (defaults to https://stitch.googleapis.com)

Details

Repository
github.com/google-labs-code/stitch-skills
First seen
Nov 30, 2026

More from google-labs-code/stitch-skills

All 12

Similar to Stitch::Upload To Stitch