Sleek
Design your mobile app UI with AI, then have your coding agent build the real app from it.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"sleek": {
"url": "https://sleek.design/api/mcp"
}
}
}Remote endpoints
https://sleek.design/api/mcpstreamable-httpWhat it can do
Tool inventory
Tools (15)
🟢list_projects(limit, offset)
List the workspace's projects, newest first. Each project holds one app's screens, theme, and design chat. Check here before create_project to avoid duplicates.
Input Schema
{
"type": "object",
"properties": {
"limit": {
"default": 50,
"description": "Number of items to return.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"default": 0,
"description": "Number of items to skip before this page.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Use as projectId to access this project."
},
"name": {
"type": "string",
"description": "Display name of the project."
},
"slug": {
"type": "string",
"description": "Slugified project name. Use id to address the project."
},
"createdAt": {
"type": "string",
"description": "ISO 8601 time the project was created."
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 time the project last changed."
}
},
"required": [
"id",
"name",
"slug",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"description": "Items on this page."
},
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total items across all pages."
},
"limit": {
"type": "number",
"description": "Page size used for this response."
},
"offset": {
"type": "number",
"description": "Items skipped before this page."
}
},
"required": [
"total",
"limit",
"offset"
],
"additionalProperties": false
}
},
"required": [
"data",
"pagination"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟡create_project(name)
Create an empty project. Returns it in data, plus projectUrl. Pass data.id as projectId to design, then call show_project once the run completes. Creating a project is instant and uses no credits. Only design runs do. Share projectUrl so your user can watch and edit the designs.
Input Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Display name for the new project."
}
},
"required": [
"name"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Use as projectId to access this project."
},
"name": {
"type": "string",
"description": "Display name of the project."
},
"slug": {
"type": "string",
"description": "Slugified project name. Use id to address the project."
},
"createdAt": {
"type": "string",
"description": "ISO 8601 time the project was created."
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 time the project last changed."
}
},
"required": [
"id",
"name",
"slug",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
}
},
"required": [
"data",
"projectUrl"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_project(projectId)
Fetch a project and its projectUrl. Use it to confirm the project exists and share the URL with your user. Use list_components to see its screens.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Project id from an item's id in list_projects, or data.id in create_project."
}
},
"required": [
"projectId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Use as projectId to access this project."
},
"name": {
"type": "string",
"description": "Display name of the project."
},
"slug": {
"type": "string",
"description": "Slugified project name. Use id to address the project."
},
"createdAt": {
"type": "string",
"description": "ISO 8601 time the project was created."
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 time the project last changed."
}
},
"required": [
"id",
"name",
"slug",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
}
},
"required": [
"data",
"projectUrl"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴delete_project(projectId, confirm)
Permanently delete a project and all its screens. Designs cannot be recovered. Call only after your user confirms the exact project by name. Never delete projects to tidy up on your own initiative.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"confirm": {
"type": "boolean",
"const": true,
"description": "Set only after your user confirms this exact project by name. Deletion is irreversible."
}
},
"required": [
"projectId",
"confirm"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"deleted": {
"type": "boolean",
"const": true,
"description": "Always true. The project and its screens are gone."
},
"projectId": {
"type": "string",
"description": "Id of the deleted project."
}
},
"required": [
"deleted",
"projectId"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_components(projectId, limit, offset)
List a project's screen names and active version numbers without generated HTML. Pass each item's screenId to design. Pass its id as componentId to get_component or in componentIds to screenshot. Use get_component only when you need a screen's code.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"limit": {
"default": 50,
"description": "Number of items to return.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"default": 0,
"description": "Number of items to skip before this page.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"projectId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
},
"screenId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Pass as screenId to design to edit this screen. Null when the component is not placed on the canvas."
},
"name": {
"type": "string"
},
"activeVersion": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Version number the screen currently shows. Null before the screen has a version."
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"screenId",
"name",
"activeVersion",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"description": "Items on this page."
},
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total items across all pages."
},
"limit": {
"type": "number",
"description": "Page size used for this response."
},
"offset": {
"type": "number",
"description": "Items skipped before this page."
}
},
"required": [
"total",
"limit",
"offset"
],
"additionalProperties": false
}
},
"required": [
"data",
"pagination"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_component(projectId, componentId, inlineIcons, allVersions)
Fetch a screen's generated HTML. Returns the screen in data, with the HTML at data.versions[].code. versions holds only the version the screen currently shows. Use allVersions for the full history, which can be large. The returned screenId is the value design takes. Use this for a build handoff, not to check whether a design run worked.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"componentId": {
"type": "string",
"description": "Component id from an item's id in list_components, or a componentId in a run's data.result.operations. Not a screenId."
},
"inlineIcons": {
"default": false,
"description": "Inline icons as SVG so the HTML works without loading Iconify.",
"type": "boolean"
},
"allVersions": {
"default": false,
"description": "Return every stored version instead of just the active one. Payloads grow quickly; leave it off unless you need the history.",
"type": "boolean"
}
},
"required": [
"projectId",
"componentId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
},
"screenId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Pass as screenId to design to edit this screen. Null when the component is not placed on the canvas."
},
"name": {
"type": "string"
},
"activeVersion": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Version number the screen currently shows. Null before the screen has a version."
},
"versions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "number"
},
"code": {
"type": "string",
"description": "Generated HTML for this screen revision."
},
"createdAt": {
"type": "string"
}
},
"required": [
"id",
"version",
"code",
"createdAt"
],
"additionalProperties": false
},
"description": "Only the version the screen currently shows, unless allVersions is true. Each holds the screen's generated HTML in code."
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"screenId",
"name",
"activeVersion",
"versions",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_references(limit, offset)
List curated app styles and their preview images. When your user asks for a look such as Airbnb, brutalist, or dark fintech, pass the closest reference's id as referenceId to design. Without a reference, the agent picks a style.
Input Schema
{
"type": "object",
"properties": {
"limit": {
"default": 50,
"description": "Number of items to return.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"default": 0,
"description": "Number of items to skip before this page.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Use as referenceId to guide a design run."
},
"name": {
"type": "string"
},
"previewImageUrls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Screen previews showing this reference's visual style."
}
},
"required": [
"id",
"name",
"previewImageUrls"
],
"additionalProperties": false
},
"description": "Items on this page."
},
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total items across all pages."
},
"limit": {
"type": "number",
"description": "Page size used for this response."
},
"offset": {
"type": "number",
"description": "Items skipped before this page."
}
},
"required": [
"total",
"limit",
"offset"
],
"additionalProperties": false
}
},
"required": [
"data",
"pagination"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴design(projectId, message, imageUrls, screenId, referenceId, ...)
Run Sleek's design agent to create or edit screens from a plain-language brief. Send the whole request as ONE message, such as 'a food delivery app with onboarding, restaurants, dish detail, cart, tracking, and profile'. The agent plans the screens together, so separate calls produce mismatched screens. A run uses workspace credits only when it completes or saves changes. By default this waits for the run to finish. If it returns 'queued' or 'running', poll get_design_run. Only one run can be active per project. On CONFLICT, poll get_design_run until the run settles, then retry. cancel_design_run stops it sooner. If a failed run has data.error.url, relay data.error.message to your user with that link. They have to act before you retry. On completion, call show_project with data.runId to show your user what the run made, inline. Use screenshot only where your client cannot show apps. Then share projectUrl with your user.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"message": {
"type": "string",
"minLength": 1,
"description": "The full design brief, as one message. Name every screen you want in this single request."
},
"imageUrls": {
"default": [],
"description": "HTTPS image URLs for visual input, such as screenshots, logos, or style references.",
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"screenId": {
"description": "Edit this existing screen instead of creating new ones. Use the screenId from list_components, or from a previous run's data.result.operations (via design or get_design_run). It is not the component id.",
"type": "string",
"minLength": 1
},
"referenceId": {
"description": "Design reference to imitate, from list_references.",
"type": "string",
"minLength": 1,
"maxLength": 64
},
"wait": {
"default": true,
"description": "Wait for the run to finish before returning. The wait is capped at 270 seconds, after which you get status 'running' back and poll get_design_run. Set false to return immediately and poll from the start, which is the better choice if your client times tool calls out sooner than that.",
"type": "boolean"
},
"idempotencyKey": {
"description": "Pick a unique key for each new design request, such as a UUID. Reuse it for retries to return the original run instead of starting a second one.",
"type": "string",
"maxLength": 255
}
},
"required": [
"projectId",
"message"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"runId": {
"type": "string",
"description": "Use as runId to poll or cancel this run."
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed"
]
},
"result": {
"type": "object",
"properties": {
"assistantText": {
"type": "string",
"description": "The design agent's reply text."
},
"operations": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "screen_created"
},
"screenId": {
"type": "string",
"description": "Id of the screen. Pass it to a later run to edit this screen."
},
"screenName": {
"type": "string"
},
"componentId": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
}
},
"required": [
"type",
"screenId",
"screenName",
"componentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "screen_updated"
},
"screenId": {
"type": "string",
"description": "Id of the screen. Pass it to a later run to edit this screen."
},
"componentId": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
}
},
"required": [
"type",
"screenId",
"componentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "theme_updated"
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
},
"description": "Screen creations, screen updates, and theme changes saved by the run."
}
},
"required": [
"assistantText",
"operations"
],
"additionalProperties": false,
"description": "Failed runs can include changes saved before failure."
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Failure reason, such as out_of_credits, cancelled, execution_timeout, execution_failed, or request_message_persist_failed."
},
"message": {
"type": "string"
},
"url": {
"description": "Where the caller's user can resolve this error. Relay it to the user.",
"type": "string"
},
"limit": {
"type": "string",
"enum": [
"agent_access",
"credits",
"projects"
],
"description": "The plan or credit limit that caused this error."
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"required": [
"runId",
"status"
],
"additionalProperties": false
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
}
},
"required": [
"data",
"projectUrl"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_design_run(projectId, runId)
Poll a run that design returned as 'queued' or 'running'. Wait a few seconds between polls. On 'completed', data.result.operations lists the saved screens and theme changes. Call show_project with this runId to show your user what the run made, inline. Use screenshot only where your client cannot show apps. Then share projectUrl. On 'failed', relay data.error.message to your user, with data.error.url if present. A failed run, including a cancelled one, keeps what it saved in that same list and uses credits only when the list is not empty. Check it before resending the brief.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"runId": {
"type": "string",
"minLength": 1,
"description": "Run id from data.runId in a design result."
}
},
"required": [
"projectId",
"runId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"runId": {
"type": "string",
"description": "Use as runId to poll or cancel this run."
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed"
]
},
"result": {
"type": "object",
"properties": {
"assistantText": {
"type": "string",
"description": "The design agent's reply text."
},
"operations": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "screen_created"
},
"screenId": {
"type": "string",
"description": "Id of the screen. Pass it to a later run to edit this screen."
},
"screenName": {
"type": "string"
},
"componentId": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
}
},
"required": [
"type",
"screenId",
"screenName",
"componentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "screen_updated"
},
"screenId": {
"type": "string",
"description": "Id of the screen. Pass it to a later run to edit this screen."
},
"componentId": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
}
},
"required": [
"type",
"screenId",
"componentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "theme_updated"
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
},
"description": "Screen creations, screen updates, and theme changes saved by the run."
}
},
"required": [
"assistantText",
"operations"
],
"additionalProperties": false,
"description": "Failed runs can include changes saved before failure."
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Failure reason, such as out_of_credits, cancelled, execution_timeout, execution_failed, or request_message_persist_failed."
},
"message": {
"type": "string"
},
"url": {
"description": "Where the caller's user can resolve this error. Relay it to the user.",
"type": "string"
},
"limit": {
"type": "string",
"enum": [
"agent_access",
"credits",
"projects"
],
"description": "The plan or credit limit that caused this error."
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"required": [
"runId",
"status"
],
"additionalProperties": false
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
}
},
"required": [
"data",
"projectUrl"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴cancel_design_run(projectId, runId)
Ask a design run to stop, for example when the brief was wrong. Returns the run as it stands right after the request. A queued run comes back 'failed' with error code 'cancelled' and never starts. A running run comes back still 'running' and stops at its next step. A run cut short settles as 'failed' with error code 'cancelled', or 'execution_failed' if saving its changes failed. It keeps any screens and theme changes it saved, listed in data.result.operations, and uses credits only when that list is not empty. A run that finishes before it stops settles as 'completed'. A run that had already settled comes back unchanged. The project stays locked until the run settles, so poll get_design_run before starting another run. A run that stopped responding settles as 'failed' with error code 'execution_timeout' 15 minutes after creation.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"runId": {
"type": "string",
"minLength": 1,
"description": "Run id from data.runId in a design result."
}
},
"required": [
"projectId",
"runId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"runId": {
"type": "string",
"description": "Use as runId to poll or cancel this run."
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed"
]
},
"result": {
"type": "object",
"properties": {
"assistantText": {
"type": "string",
"description": "The design agent's reply text."
},
"operations": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "screen_created"
},
"screenId": {
"type": "string",
"description": "Id of the screen. Pass it to a later run to edit this screen."
},
"screenName": {
"type": "string"
},
"componentId": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
}
},
"required": [
"type",
"screenId",
"screenName",
"componentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "screen_updated"
},
"screenId": {
"type": "string",
"description": "Id of the screen. Pass it to a later run to edit this screen."
},
"componentId": {
"type": "string",
"description": "Use as componentId to fetch HTML or in componentIds to render screenshots."
}
},
"required": [
"type",
"screenId",
"componentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "theme_updated"
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
},
"description": "Screen creations, screen updates, and theme changes saved by the run."
}
},
"required": [
"assistantText",
"operations"
],
"additionalProperties": false,
"description": "Failed runs can include changes saved before failure."
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Failure reason, such as out_of_credits, cancelled, execution_timeout, execution_failed, or request_message_persist_failed."
},
"message": {
"type": "string"
},
"url": {
"description": "Where the caller's user can resolve this error. Relay it to the user.",
"type": "string"
},
"limit": {
"type": "string",
"enum": [
"agent_access",
"credits",
"projects"
],
"description": "The plan or credit limit that caused this error."
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"required": [
"runId",
"status"
],
"additionalProperties": false
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
}
},
"required": [
"data",
"projectUrl"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢screenshot(projectId, componentIds, format, scale, fullHeight, ...)
Render up to four project screens side by side as one inline image, for clients that cannot show apps. Where your client can, call show_project instead. Returns the image, PNG unless format asks for WebP, and a one-line text note. Rendering uses no credits. Send projectUrl with the image so your user can open and edit the designs.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"componentIds": {
"minItems": 1,
"maxItems": 4,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Component id from an item's id in list_components, or a componentId in a run's data.result.operations. Not a screenId. Screens render left to right. Render more than 4 in separate calls."
},
"format": {
"default": "png",
"description": "Image encoding for the screenshot.",
"type": "string",
"enum": [
"png",
"webp"
]
},
"scale": {
"default": 1,
"description": "Pixel density. 1 is right for showing a design in chat; raise it only when the user asked for a high-resolution export.",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"fullHeight": {
"default": false,
"description": "Expand each frame to the full height of its content before capturing, so scrollable screens are rendered fully extended rather than cut off at the bottom of the frame. Frames are capped at 4x the default frame height.",
"type": "boolean"
},
"background": {
"default": "transparent",
"description": "CSS background behind the frames, such as \"#ffffff\" or \"transparent\".",
"type": "string"
},
"padding": {
"default": 40,
"description": "Space in pixels on each side of the row of frames.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"projectId",
"componentIds"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢show_project(projectId, runId)
Shows your user a project's screens inline, in canvas order. They can enlarge a screen, add screens to this chat, and open the project in Sleek. After a design run completes, call it with that runId to show what the run made. Where the client cannot show apps, this returns the screen names only; use screenshot to see the screens. Returns the screen names and ids, the same ones design takes as screenId.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"runId": {
"description": "Run id from data.runId in a design result. Marks the screens that run changed.",
"type": "string",
"minLength": 1
}
},
"required": [
"projectId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project's id."
},
"name": {
"type": "string",
"description": "Project name."
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
},
"screenCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "How many screens the project has, including any not listed."
},
"screens": {
"type": "array",
"items": {
"type": "object",
"properties": {
"screenId": {
"type": "string",
"description": "Pass to design as screenId to edit this screen."
},
"name": {
"type": "string",
"description": "Screen name."
}
},
"required": [
"screenId",
"name"
],
"additionalProperties": false
},
"description": "The project's screens in canvas order, up to 200. Every screen the runId run changed is listed."
},
"runStatus": {
"description": "Status of the run named by runId, when one was given.",
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed"
]
}
},
"required": [
"projectId",
"name",
"projectUrl",
"screenCount",
"screens"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢search_mentions(query)
Find the workspace's projects by name for an @ mention, newest first. Each item is a resource link whose name is the projectId and whose uri is the projectUrl. To browse every project, use list_projects.
Input Schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Text the project name contains, ignoring case. Empty returns the newest projects."
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "resource_link"
},
"uri": {
"type": "string",
"description": "The project's projectUrl."
},
"name": {
"type": "string",
"description": "The projectId for get_project and design."
},
"title": {
"type": "string",
"description": "Project name, as the picker shows it."
},
"description": {
"type": "string",
"description": "Says which projectId to use."
}
},
"required": [
"type",
"uri",
"name",
"title",
"description"
],
"additionalProperties": false
},
"description": "Matching projects."
}
},
"required": [
"items"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_project_view(projectId, runId, locale)
Called by Sleek's screen viewer to load a project's screens, in canvas order, with their images and the viewer's text. To read screens yourself, use list_components.
Input Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Project id from an item's id in list_projects, or data.id in create_project."
},
"runId": {
"description": "Run id from data.runId in a design result. Marks the screens that run changed.",
"type": "string",
"minLength": 1
},
"locale": {
"description": "The host's BCP 47 locale, such as pt-BR. The viewer's text uses it when Sleek supports that language.",
"type": "string"
}
},
"required": [
"projectId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The project's id."
},
"name": {
"type": "string",
"description": "Project name."
},
"projectUrl": {
"type": "string",
"description": "Open link for the project. Share it with your user."
},
"screenCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "How many screens the project has, including any not listed."
},
"screens": {
"type": "array",
"items": {
"type": "object",
"properties": {
"screenId": {
"type": "string",
"description": "Pass to design as screenId to edit this screen."
},
"name": {
"type": "string",
"description": "Screen name."
}
},
"required": [
"screenId",
"name"
],
"additionalProperties": false
},
"description": "The project's screens in canvas order, up to 200. Every screen the runId run changed is listed."
},
"runStatus": {
"description": "Status of the run named by runId, when one was given.",
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed"
]
}
},
"required": [
"projectId",
"name",
"projectUrl",
"screenCount",
"screens"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢open_sleek(locale)
Called by ChatGPT's sidebar and Sleek's widget to show the workspace's newest projects, each with a cover. To list projects yourself, use list_projects.
Input Schema
{
"type": "object",
"properties": {
"locale": {
"description": "The host's BCP 47 locale, such as pt-BR. The sidebar's text uses it when Sleek supports that language.",
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Output Schema
{
"type": "object",
"properties": {
"projects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "The projectId the other tools take."
},
"name": {
"type": "string",
"description": "Project name."
}
},
"required": [
"projectId",
"name"
],
"additionalProperties": false
},
"description": "The workspace's newest projects, newest first."
}
},
"required": [
"projects"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Community
Evidence