Tooluck logoTooluck
SKILL.md

stitch::upload-to-stitch

Agent skill fromgoogle-labs-code/stitch-skills

Upload local assets (images, mockups, extracted HTML, design markdown) to a Stitch project. ALWAYS use this skill when you need to upload visual assets, HTML pages, or design docs to Stitch, particularly when direct MCP tool calls fail or truncate due to base64 token limits.

How to install stitch::upload-to-stitch

install stitch::upload-to-stitch
# install the stitch-skills pack with the skills CLI
npx skills add google-labs-code/stitch-skills

# or add only this skill to Claude Code: copy the folder

plugins/stitch-design/skills/upload-to-stitch/

# into

~/.claude/skills/upload-to-stitch/ (all projects)

.claude/skills/upload-to-stitch/ (one project)

plugins/stitch-design/skills/upload-to-stitch/SKILL.md

Apache-2.0Full file
1# Upload-to-Stitch
2
3Upload local assets (images, mockups, HTML, and markdown files) to a Stitch project using the
4provided upload script, which bypasses the MCP tool's base64 output token limits.
5
6> [!NOTE]
7> The AI model cannot upload files via MCP tools directly because the base64
8> encoding of even a small file exceeds the model's output token limit (~16K
9> tokens). This script reads the file and sends it directly over HTTP.
10
11## Steps
12
13### 1. Identify Target Project
14
15Use `list_projects` to find the correct `projectId`.
16
17### 2. Get the API Key
18
19Locate your active MCP server configuration file and extract the API key:
20- **Antigravity**: `.gemini/antigravity/mcp_config.json` or `.gemini/jetski/mcp_config.json`
21- **Gemini CLI**: `~/.gemini/settings.json` or `~/.gemini/extensions/Stitch/gemini-extension.json`
22- **Claude Code**: `~/.claude.json`
23
24Extract:
25- **API Key**: From the `X-Goog-Api-Key` header or auth argument
26- **MCP URL** (optional): From the `httpUrl` or endpoint argument (defaults to
27 `https://stitch.googleapis.com`)
28
29> [!IMPORTANT]
30> If you cannot find the API key in any of these locations, or if you cannot access these files, you MUST ask the user to provide the Stitch API key. Do not proceed without a valid API key.
31
32### 3. Run Upload Script
33
34> [!WARNING]
35> **Checkpoint — User Confirmation Required.**
36> Before running the upload script, you **MUST** pause and present the file(s)
37> to be uploaded (paths, sizes, and types) to the user and wait for explicit
38…

Excerpt shown under the repository's Apache-2.0 license.

More skills in stitch-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates