skills/stitch-design/references/tool-schemas.md

1.5 KiB

Stitch MCP Tool Schemas

Use these examples to format your tool calls to the Stitch MCP server correctly.


🏗️ Project Management

list_projects

Lists all Stitch projects accessible to you.

// No parameters needed
{}

get_project

Retrieves details of a specific project.

{
  "name": "projects/4044680601076201931"
}

create_project

Creates a new Stitch project.

{
  "title": "My New App"
}

🎨 Design Generation

generate_screen_from_text

Generates a new screen from a text description.

{
  "projectId": "4044680601076201931",
  "prompt": "A modern landing page for a coffee shop with a hero section, menu, and contact form. Use warm brown tones (#4b2c20) and a clean sans-serif font.",
  "deviceType": "DESKTOP" // Options: MOBILE, DESKTOP, TABLET
}

edit_screens

Edits existing screens with a text prompt.

{
  "projectId": "4044680601076201931",
  "selectedScreenIds": ["98b50e2ddc9943efb387052637738f61"],
  "prompt": "Change the background color to white (#ffffff) and make the call-to-action button larger."
}

🖼️ Screen Management

list_screens

Lists all screens within a project.

{
  "projectId": "4044680601076201931"
}

get_screen

Retrieves details of a specific screen.

{
  "projectId": "4044680601076201931",
  "screenId": "98b50e2ddc9943efb387052637738f61",
  "name": "projects/4044680601076201931/screens/98b50e2ddc9943efb387052637738f61"
}