Skip to main content
Google Stitch logo
  • Category: model context protocol
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 16
  • Triggers: 0
  • Slug: GOOGLE_STITCH
  • Version: 20261101_00

Tools

Slug: GOOGLE_STITCH_APPLY_DESIGN_SYSTEMApply one design system to 1-20 unique typed screen instances from Get Project. Returns every restyled screen plus any clarification, progress, design-system, or session output. This mutating generation request is sent once and never retried; reconcile an indeterminate failure with project reads.

Input Parameters

string
required
Bare design-system asset ID from List Design Systems, without assets/.
string
required
Bare project ID containing the target screen instances.
array
required
One to 20 unique typed screen instances from Get Project. Supply each instance’s id and source_screen together; instance IDs are not screen IDs.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_CREATE_DESIGN_SYSTEMCreate a typed Stitch design system from explicit current theme fields. Providing project_id creates it for that project; intentionally omitting project_id creates a global asset. This non-idempotent operation is attempted once and is never retried automatically.

Input Parameters

string
Optional bare project ID. Omit it intentionally to create a global design-system asset rather than a project-bound asset.
object
required
Display name and typed theme for the new design system.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_CREATE_DESIGN_SYSTEM_FROM_DESIGN_MDCreate a project design system from the exact screen instance returned by Upload Design Markdown. The non-idempotent request is sent once and is never retried by this action.

Input Parameters

string
required
Bare project ID used for the preceding DESIGN.md upload, without the projects/ prefix.
string ("DEVICE_TYPE_UNSPECIFIED" | "MOBILE" | "DESKTOP" | "TABLET" | "AGNOSTIC")
Optional screen device type using Google Stitch’s exact enum.
object
required
The exact id and source_screen pair returned by Upload Design Markdown.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_CREATE_PROJECTCreate a Stitch project container for UI designs and return its project resource name. This non-idempotent operation is sent once and is not retried by the action.

Input Parameters

string
Optional project title; omit it to let Stitch choose the title.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_DELETE_PROJECTPermanently delete one Google Stitch project. This destructive operation cannot be undone, requires explicit confirmation, and is attempted once without automatic retries.

Input Parameters

string
required
Full resource name of the project to permanently delete, in the form projects/{project}.
boolean
required
Must be true to confirm permanent deletion of the project. This action cannot be undone.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_DOWNLOAD_FILERetrieve bounded HTML or screenshot content using a provider-owned Stitch file resource name. Arbitrary URLs are never accepted or fetched.

Input Parameters

string
required
Provider-owned file resource name from a screen’s html_code.name or screenshot.name, in the form projects/{project}/files/{file}.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_EDIT_SCREENSApply one text-directed edit to up to 20 existing Stitch screens. The response may contain changed screens, clarification questions, or progress; the operation may continue after a timeout, and the action sends one request without retries.

Input Parameters

string
required
Describe the edit to apply to every selected screen. If Stitch asks a clarifying question, answer it in a later call to this same tool.
string ("MODEL_ID_UNSPECIFIED" | "GEMINI_3_8_FLASH" | "GEMINI_3_5_FLASH_LITE")
Optional Stitch generation model, using the provider’s exact enum.
string
required
Bare project ID containing the screens, without the projects/ prefix.
array
required
One to 20 unique bare screen IDs without screens/ or full project paths.
string ("DEVICE_TYPE_UNSPECIFIED" | "MOBILE" | "DESKTOP" | "TABLET" | "AGNOSTIC")
Optional target device type, using the provider’s exact enum.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_GENERATE_SCREENGenerate screens from a bounded text prompt in an existing Stitch project. Returns every generated screen or recoverable clarification output. This paid or mutating operation is attempted exactly once; a timeout or connection loss is indeterminate and is never retried automatically.

Input Parameters

string
required
Describe the UI screen or screens to generate. If Stitch asks a clarification, answer it in a later call to this same tool.
string ("MODEL_ID_UNSPECIFIED" | "GEMINI_3_8_FLASH" | "GEMINI_3_5_FLASH_LITE")
Optional Stitch generation model, using the provider’s exact enum.
string
required
Bare project ID without the projects/ prefix.
string ("DEVICE_TYPE_UNSPECIFIED" | "MOBILE" | "DESKTOP" | "TABLET" | "AGNOSTIC")
Optional target device type, using the provider’s exact enum.
string
Optional full design-system resource name in the form assets/{asset}. Omit it for a project’s first screen.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_GENERATE_VARIANTSGenerate 1-5 variants for up to 20 unique source screens with exact creative-range, aspect, device, and model enums. Returns every generated screen or recoverable clarification output. This generation request is sent once and never retried.

Input Parameters

string
required
Describe what the variants should explore. Call this tool again with an answering prompt if Stitch requests clarification.
string ("MODEL_ID_UNSPECIFIED" | "GEMINI_3_8_FLASH" | "GEMINI_3_5_FLASH_LITE")
Optional Stitch generation model using the provider’s exact enum.
string
required
Bare project ID containing the source screens.
array
required
One to 20 unique bare source screen IDs, without a screens/ or project prefix.
string ("DEVICE_TYPE_UNSPECIFIED" | "MOBILE" | "DESKTOP" | "TABLET" | "AGNOSTIC")
Optional target device type using Stitch’s exact enum.
object
required
Variant count, creative range, and exact aspects to vary.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_GET_PROJECTGet one Stitch project by full resource name, including screen instances needed for design-system application.

Input Parameters

string
required
Full project resource name in the form projects/{project}; use a name returned by Create Project or List Projects.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_GET_SCREENGet one Stitch screen by full resource name and return bounded screen metadata plus provider-owned HTML and screenshot file references.

Input Parameters

string
required
Full screen resource name in the form projects/{project}/screens/{screen}.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_LIST_DESIGN_SYSTEMSList complete Google Stitch design systems for one project. The live provider requires project_id and exposes no pagination.

Input Parameters

string
required
Bare project ID without the projects/ prefix. The live provider rejects omitted or empty project IDs even though discovery marks this field optional.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_LIST_PROJECTSList Google Stitch projects owned by the connected account or explicitly shared with it. Owned projects are returned by default.

Input Parameters

string ("owned" | "shared")
List projects owned by the connected account (the default), or projects explicitly shared with it. Shared access does not imply ownership.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_LIST_SCREENSList all screens currently returned for one Stitch project, including safe HTML and screenshot file resource references.

Input Parameters

string
required
Bare project ID without the projects/ prefix.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_UPDATE_DESIGN_SYSTEMUpdate a Stitch design system’s display name and typed nondeprecated theme for one project. The operation is attempted once without automatic retries.

Input Parameters

string
required
Bare project ID without the projects/ prefix.
object
required
Complete display name and typed nondeprecated theme to replace the current values.
string
required
Full design-system resource name in the form assets/{asset}.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: GOOGLE_STITCH_UPLOAD_DESIGN_MDUpload bounded UTF-8 DESIGN.md content to a Stitch project and return the screen instance required by Create Design System From Markdown. The action uploads content only, never reads local files or executes the content, and does not retry after an indeterminate failure.

Input Parameters

string
required
Bare project ID that will receive the DESIGN.md content, without projects/.
string
required
Canonical padded base64 containing UTF-8 DESIGN.md content, at most 1 MiB decoded. The content is uploaded as data and is never executed.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not