Receber por email
← Voltar para o catálogo

stitch-mcp-upload-screens-from-images

Uploads screenshots or mockup images into a Stitch project as new screens. Enables the "redesign from screenshot" workflow — import existing UI and then edit or convert.

32estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: Apache-2.0

Como adicionar

/plugin marketplace add gabelul/stitch-kit

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/stitch-mcp-upload-screens-from-images/svg)](https://www.skillteca.com.br/skills/stitch-mcp-upload-screens-from-images)

Alerta por categoria

Receba novas skills de Design e Frontend toda segunda

1 email curto, só com as skills novas de Design e Frontend. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Stitch MCP — Upload Screens from Images

Uploads one or more images (screenshots, mockups, wireframes) into a Stitch project as new screens. This is the entry point for the "redesign existing UI" workflow — import what you have, then use edit_screens to iterate or convert directly to code.

Critical prerequisite

Only use this skill when the user explicitly mentions "Stitch".

You must have a projectId before calling this. If you don't have one:

  • Create a new project via stitch-mcp-create-project
  • Or find an existing project via stitch-mcp-list-projects

When to use

  • User provides a screenshot and wants to redesign it in Stitch
  • User wants to import existing mockups into Stitch for editing
  • The orchestrator classifies intent as "Upload screenshot"
  • User says "import this design", "upload this image", or "redesign this screen"

Step 1: Encode the image to base64

Use the helper script to convert a local image file to base64:

bash scripts/encode-image.sh "path/to/screenshot.png"

The script outputs raw base64 to stdout. Capture it for the API call.

Supported formats and their MIME types: | Extension | MIME type | |-----------|----------| | .png | image/png | | .jpg, .jpeg | image/jpeg | | .webp | image/webp | | .gif | image/gif |

Step 2: Call the MCP tool

{
  "name": "upload_screens_from_images",
  "arguments": {
    "projectId": "3780309359108792857",
    "images": [
      {
        "fileContentBase64": "[base64-encoded-image-data]",
        "mimeType": "image/png"
      }
    ]
  }
}

projectId — numeric ID only, no prefix

✅ "3780309359108792857"
❌ "projects/3780309359108792857"

images — array of image objects

Each image needs: | Field | Type | Description | |-------|------|-------------| | fileContentBase64 | string | Base64-encoded image data (no data: prefix) | | mimeType | string | MIME type matching the image format |

You can upload multiple images in a single call — each becomes a separate screen.

Output

Returns session info similar to generate_screen_from_text. The uploaded images appear as new screens in the project.

After uploading

  1. Call stitch-mcp-list-screens to find the new screen IDs
  2. Offer the user:
  3. "Edit this screen (change colors, layout, content)?" → stitch-mcp-edit-screens
  4. "Convert directly to code?" → stitch-mcp-get-screen → framework conversion
  5. "Generate variants based on this design?" → stitch-mcp-generate-variants

References

  • scripts/encode-image.sh — Base64 encoding helper
Compartilhar X LinkedIn