MCP Tools
Reference for the uniform Stitch CLI Model Context Protocol tools.
The Stitch CLI includes a built-in MCP server (stitch mcp start / stitch mcp install) that exposes 7 uniform verb tools mirroring the CLI grammar.
| Tool | CLI Equivalent | Read-Only |
|---|---|---|
stitch_create | stitch create | false |
stitch_delete | stitch delete | false |
stitch_edit | stitch edit | false |
stitch_find | stitch find | true |
stitch_generate | stitch generate | false |
stitch_get | stitch get | true |
stitch_url | stitch url | true |
Tools
stitch_create
Creates one resource. Mirrors stitch create <resource>. Use to perform atomic creation (‘add context’, ‘create loop’, ‘connect tool provider’, ‘create skill’, ‘generate screen’). Returns { resource, item, created }; with dryRun, returns the exact request preview.
Annotations
destructive
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "project" | "screen" | "design-system" |
body | object | true | Resource payload. Required fields: project={}, screen={prompt}, design-system={designSystem={displayName, theme={bodyFont, colorMode, customColor, headlineFont, roundness}}}, workspace={displayName}, context={data, description}, skill={content, id}, loop={objective}, webhook={eventTypes, url}, connection={providerId}. |
workspace | string | false | Workspace ID override. Required for workspace-scoped resources when no default workspace is configured. |
project | string | false | Stitch project ID (required for project-scoped resources). |
dryRun | boolean | false | Validate payload and preview the request without sending it. |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"project",
"screen",
"design-system",
"workspace",
"context",
"skill",
"loop",
"webhook",
"connection",
"priority",
"priorities"
],
"description": "Resource type to create (project, screen, design-system, workspace, context, skill, loop, webhook, connection)."
},
"body": {
"type": "object",
"description": "Resource payload. Required fields: project={}, screen={prompt}, design-system={designSystem={displayName, theme={bodyFont, colorMode, customColor, headlineFont, roundness}}}, workspace={displayName}, context={data, description}, skill={content, id}, loop={objective}, webhook={eventTypes, url}, connection={providerId}."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch project ID (required for project-scoped resources)."
},
"dryRun": {
"type": "boolean",
"description": "Validate payload and preview the request without sending it."
}
},
"required": [
"resource",
"body"
]
}
CLI equivalent
stitch create --schema
stitch_delete
Removes one resource by id (project, workspace, context, loop, webhook). Mirrors stitch delete <resource> <id>. Returns { resource, id, deleted }.
Annotations
destructive
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "projects" | "project" | "workspaces" |
id | string | true | ID of the resource to delete. |
workspace | string | false | Workspace ID override. Required for workspace-scoped resources when no default workspace is configured. |
project | string | false | Stitch Canvas project ID (required for project-scoped resources). |
dryRun | boolean | false | Preview what would be deleted and issue no HTTP request. |
dry-run | boolean | false | Preview what would be deleted and issue no HTTP request. |
confirm | boolean | false | Must be set to true when deleting a cascading or destructive resource (workspace, project, context). |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"projects",
"project",
"workspaces",
"workspace",
"contexts",
"context",
"loops",
"loop",
"priority",
"priorities",
"webhooks",
"webhook"
],
"description": "Resource type to delete (project, workspace, context, loop, webhook)."
},
"id": {
"type": "string",
"description": "ID of the resource to delete."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for project-scoped resources)."
},
"dryRun": {
"type": "boolean",
"description": "Preview what would be deleted and issue no HTTP request."
},
"dry-run": {
"type": "boolean",
"description": "Preview what would be deleted and issue no HTTP request."
},
"confirm": {
"type": "boolean",
"description": "Must be set to true when deleting a cascading or destructive resource (workspace, project, context)."
}
},
"required": [
"resource",
"id"
]
}
CLI equivalent
stitch delete --schema
stitch_edit
Applies a partial update to one resource. Mirrors stitch edit <resource> <id>. Use to modify mutable fields (‘update loop description’, ‘edit context’, ‘update workspace file’, ‘patch skill’, ‘pause webhook’, ‘edit screen’). Returns { resource, item, updateMask }; when Canvas applies the edit asynchronously (design systems), returns { resource, id, status: ‘pending’, session, requested, message } and the caller should re-read the resource later; with dryRun, returns the exact request preview.
Annotations
destructive
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "screen" | "design-system" | "workspace" |
id | string | true | ID of the resource to edit. For screens, also accepts projects/<p>/screens/<s> or a Stitch canvas URL; the project it names is used. |
patch | object | true | Fields to update. Editable fields: screen={deviceType, modelId, prompt, designSystem}, design-system={designSystem={displayName, theme={bodyFont, colorMode, colorVariant, customColor, designMd, headlineFont, labelFont, overrideNeutralColor, overridePrimaryColor, overrideSecondaryColor, overrideTertiaryColor, roundness, spacing, typography}}}, workspace={description, displayName, priorityGroups, repositories}, context={annotations, data, dataSource, description, expireTime, schema}, file={content, path}, skill={content, description}, loop={autonomyLevel, description, groupId}, webhook={displayName, eventTypes, secret, sslVerificationEnabled, state}. |
updateMask | string | false | Comma-separated field paths to update. Derived from patch keys when omitted. |
workspace | string | false | Workspace ID override. Required for workspace-scoped resources when no default workspace is configured. |
project | string | false | Stitch project ID (required for project-scoped resources). |
dryRun | boolean | false | Preview the request without modifying the resource. |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"screen",
"design-system",
"workspace",
"context",
"file",
"skill",
"loop",
"webhook",
"priority",
"priorities"
],
"description": "Resource type to edit (screen, design-system, workspace, context, file, skill, loop, webhook)."
},
"id": {
"type": "string",
"description": "ID of the resource to edit. For screens, also accepts projects/<p>/screens/<s> or a Stitch canvas URL; the project it names is used."
},
"patch": {
"type": "object",
"description": "Fields to update. Editable fields: screen={deviceType, modelId, prompt, designSystem}, design-system={designSystem={displayName, theme={bodyFont, colorMode, colorVariant, customColor, designMd, headlineFont, labelFont, overrideNeutralColor, overridePrimaryColor, overrideSecondaryColor, overrideTertiaryColor, roundness, spacing, typography}}}, workspace={description, displayName, priorityGroups, repositories}, context={annotations, data, dataSource, description, expireTime, schema}, file={content, path}, skill={content, description}, loop={autonomyLevel, description, groupId}, webhook={displayName, eventTypes, secret, sslVerificationEnabled, state}."
},
"updateMask": {
"type": "string",
"description": "Comma-separated field paths to update. Derived from patch keys when omitted."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch project ID (required for project-scoped resources)."
},
"dryRun": {
"type": "boolean",
"description": "Preview the request without modifying the resource."
}
},
"required": [
"resource",
"id",
"patch"
]
}
CLI equivalent
stitch edit --schema
stitch_find
Lists resources of a given type (projects, screens, design-systems, workspaces, contexts, files, skills, loops, webhooks, insights, solutions, connections, organizations). Mirrors stitch find <resource>. Returns { resource, items, returnedCount, isTruncated, nextPageToken }. Follow up with stitch_get on a specific id to inspect full details.
Annotations
readOnly
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "projects" | "project" | "screens" |
criteria | object | false | Resource-specific filter criteria (e.g. projects={title}, screens={title, deviceType}, design-systems={displayName}, or {id, state}). |
workspace | string | false | Workspace ID override. Required for workspace-scoped resources when no default workspace is configured. |
project | string | false | Stitch Canvas project ID (required for project-scoped resources). |
limit | integer | false | Maximum number of items to return (default 50). |
pageSize | integer | false | Items per page requested from the API (defaults to limit). |
pageToken | string | false | Resume from a previous result’s nextPageToken. Not supported for Canvas resources. |
filter | string | false | AIP-160 filter expression. |
include | array | false | Related collections to pull into each item. |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"projects",
"project",
"screens",
"screen",
"design-systems",
"design-system",
"workspaces",
"workspace",
"contexts",
"context",
"files",
"file",
"skills",
"skill",
"loops",
"loop",
"priority",
"priorities",
"webhooks",
"webhook",
"insights",
"insight",
"solutions",
"solution",
"connections",
"connection",
"toolProvider",
"toolProviders",
"tool-provider",
"tool-providers",
"organizations",
"organization"
],
"description": "Resource type to list (projects, screens, design-systems, workspaces, contexts, files, skills, loops, webhooks, insights, solutions, connections, organizations)."
},
"criteria": {
"type": "object",
"description": "Resource-specific filter criteria (e.g. projects={title}, screens={title, deviceType}, design-systems={displayName}, or {id, state})."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for project-scoped resources)."
},
"limit": {
"type": "integer",
"description": "Maximum number of items to return (default 50)."
},
"pageSize": {
"type": "integer",
"description": "Items per page requested from the API (defaults to limit)."
},
"pageToken": {
"type": "string",
"description": "Resume from a previous result's nextPageToken. Not supported for Canvas resources."
},
"filter": {
"type": "string",
"description": "AIP-160 filter expression."
},
"include": {
"type": "array",
"description": "Related collections to pull into each item."
}
},
"required": [
"resource"
]
}
CLI equivalent
stitch find --schema
stitch_generate
Triggers a backend generation job (screens, variants, insights, solutions). Mirrors stitch generate <resource>. Returns { resource, workspace, started, complete } (complete is false because generation runs asynchronously; poll with stitch_find).
Annotations
destructive
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "screens" | "screen" | "variants" |
priorities | array | false | Loop IDs to scope generation to (applies to resource=‘insights’ only; omit to generate across the entire workspace). |
insights | array | false | Insight IDs to generate solutions for (required when resource=‘solutions’; applies to resource=‘solutions’ only). |
delayExecution | boolean | false | Reschedule the agent run rather than starting immediately (applies to resource=‘insights’ only). |
replaceExisting | boolean | false | Replace existing unassigned solutions instead of adding to them (applies to resource=‘solutions’ only). |
workspace | string | false | Workspace ID override. Required when no default workspace is configured. |
project | string | false | Stitch Canvas project ID (required for screen and variant generation unless newProject is set). |
newProject | object | false | Create a new Stitch Canvas project for the generated screen (boolean or project title). |
title | string | false | Optional screen or project title (for screen generation). |
prompt | string | false | Text prompt for screen or variant generation. |
device | string | false | Device type for screen or variant generation: MOBILE, DESKTOP, TABLET, or AGNOSTIC. |
deviceType | string | false | Alias for device: MOBILE, DESKTOP, TABLET, or AGNOSTIC. |
model | string | false | Model ID for screen or variant generation (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE). |
modelId | string | false | Alias for model (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE). |
screen | object | false | Source screen ID or IDs for variant generation. |
selectedScreenIds | array | false | Alias for screen: source screen IDs for variant generation. |
count | integer | false | Number of variants to generate (1-5). |
variantCount | integer | false | Alias for count: number of variants to generate (1-5). |
creativeRange | string | false | Creative range for variants: REFINE, EXPLORE, or REIMAGINE. |
aspects | array | false | Target aspects for variants (e.g. LAYOUT, COLOR_SCHEME, TEXT_FONT). |
variantOptions | object | false | Nested variant options ({ variantCount, creativeRange, aspects }). |
dryRun | boolean | false | Validate arguments and preview scope without starting a generation job. |
dry-run | boolean | false | Validate arguments and preview scope without starting a generation job. |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"screens",
"screen",
"variants",
"variant",
"insights",
"insight",
"solutions",
"solution"
],
"description": "Resource type to generate (screens, variants, insights, solutions)."
},
"priorities": {
"type": "array",
"description": "Loop IDs to scope generation to (applies to resource='insights' only; omit to generate across the entire workspace)."
},
"insights": {
"type": "array",
"description": "Insight IDs to generate solutions for (required when resource='solutions'; applies to resource='solutions' only)."
},
"delayExecution": {
"type": "boolean",
"description": "Reschedule the agent run rather than starting immediately (applies to resource='insights' only)."
},
"replaceExisting": {
"type": "boolean",
"description": "Replace existing unassigned solutions instead of adding to them (applies to resource='solutions' only)."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for screen and variant generation unless newProject is set)."
},
"newProject": {
"type": "object",
"description": "Create a new Stitch Canvas project for the generated screen (boolean or project title)."
},
"title": {
"type": "string",
"description": "Optional screen or project title (for screen generation)."
},
"prompt": {
"type": "string",
"description": "Text prompt for screen or variant generation."
},
"device": {
"type": "string",
"description": "Device type for screen or variant generation: MOBILE, DESKTOP, TABLET, or AGNOSTIC."
},
"deviceType": {
"type": "string",
"description": "Alias for device: MOBILE, DESKTOP, TABLET, or AGNOSTIC."
},
"model": {
"type": "string",
"description": "Model ID for screen or variant generation (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE)."
},
"modelId": {
"type": "string",
"description": "Alias for model (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE)."
},
"screen": {
"type": "object",
"description": "Source screen ID or IDs for variant generation."
},
"selectedScreenIds": {
"type": "array",
"description": "Alias for screen: source screen IDs for variant generation."
},
"count": {
"type": "integer",
"description": "Number of variants to generate (1-5)."
},
"variantCount": {
"type": "integer",
"description": "Alias for count: number of variants to generate (1-5)."
},
"creativeRange": {
"type": "string",
"description": "Creative range for variants: REFINE, EXPLORE, or REIMAGINE."
},
"aspects": {
"type": "array",
"description": "Target aspects for variants (e.g. LAYOUT, COLOR_SCHEME, TEXT_FONT)."
},
"variantOptions": {
"type": "object",
"description": "Nested variant options ({ variantCount, creativeRange, aspects })."
},
"dryRun": {
"type": "boolean",
"description": "Validate arguments and preview scope without starting a generation job."
},
"dry-run": {
"type": "boolean",
"description": "Validate arguments and preview scope without starting a generation job."
}
},
"required": [
"resource"
]
}
CLI equivalent
stitch generate --schema
stitch_get
Fetches one resource by id (project, screen, design-system, status, workspace, context, file, skill, loop, webhook, insight, solution, connection, organization). Mirrors stitch get <resource> <id>. Returns { resource, item, availableActions? }. Follow up with the tool named in availableActions.
Annotations
readOnly
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "projects" | "project" | "screens" |
id | string | false | ID of the resource to fetch. Required for every resource except ‘status’, where id must be omitted. |
workspace | string | false | Workspace ID override. Required for workspace-scoped resources when no default workspace is configured. |
project | string | false | Stitch Canvas project ID (required for project-scoped resources). |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"projects",
"project",
"screens",
"screen",
"design-systems",
"design-system",
"status",
"workspaces",
"workspace",
"contexts",
"context",
"files",
"file",
"skills",
"skill",
"loops",
"loop",
"priority",
"priorities",
"webhooks",
"webhook",
"insights",
"insight",
"solutions",
"solution",
"connections",
"connection",
"toolProvider",
"toolProviders",
"tool-provider",
"tool-providers",
"organizations",
"organization"
],
"description": "Resource type to fetch (project, screen, design-system, status, workspace, context, file, skill, loop, webhook, insight, solution, connection, organization)."
},
"id": {
"type": "string",
"description": "ID of the resource to fetch. Required for every resource except 'status', where id must be omitted."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for project-scoped resources)."
}
},
"required": [
"resource"
]
}
CLI equivalent
stitch get --schema
stitch_url
Returns the canonical Stitch Canvas web URL for a project or screen with zero network I/O. Mirrors stitch url <resource> <id>. Use when the user asks for a link (‘open in Stitch’, ‘get canvas URL’, ‘link to screen’) instead of guessing stitch.google.com URLs. Returns { resource, id, url, verified: false }.
Annotations
readOnly
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
resource | "project" | "screen" | true |
id | string | true | ID of the project or screen (accepts a bare ID or a full resource name like ‘projects/<p>/screens/<s>’). |
project | string | false | Project ID that owns the screen (required when resource=‘screen’ and ‘id’ is not a full ‘projects/<p>/screens/<s>’ resource name). |
Input schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"project",
"screen"
],
"description": "Stitch Canvas resource type to construct a URL for (project or screen)."
},
"id": {
"type": "string",
"description": "ID of the project or screen (accepts a bare ID or a full resource name like 'projects/<p>/screens/<s>')."
},
"project": {
"type": "string",
"description": "Project ID that owns the screen (required when resource='screen' and 'id' is not a full 'projects/<p>/screens/<s>' resource name)."
}
},
"required": [
"resource",
"id"
]
}
CLI equivalent
stitch url --schema
Original: https://stitch.withgoogle.com/docs/cli/reference/mcp-tools/
Translated from the official Google Stitch documentation. Original content © Google LLC. This is an independent, unofficial translation.