Sleek
v1.0.1Design your mobile app UI with AI, then have your coding agent build the real app from it.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_projects List projects
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of items to return. |
offset | integer | Number of items to skip before this page. |
create_project Create a project
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Display name for the new project. |
get_project Get a project
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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
delete_project Delete a project
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.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Set only after your user confirms this exact project by name. Deletion is irreversible. |
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
list_components List screens
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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
limit | integer | Number of items to return. |
offset | integer | Number of items to skip before this page. |
style | string | The style to read, by its letter, such as b. Defaults to the project's main style. |
get_component Get a screen's HTML
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.
| Parameter | Type | Description |
|---|---|---|
componentId * | string | Component id from an item's id in list_components, or a componentId in a run's data.result.operations. Not a screenId. |
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
allVersions | boolean | Return every stored version instead of just the active one. Payloads grow quickly; leave it off unless you need the history. |
inlineIcons | boolean | Inline icons as SVG so the HTML works without loading Iconify. |
list_references List design references
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of items to return. |
offset | integer | Number of items to skip before this page. |
design Design screens with AI
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_…
| Parameter | Type | Description |
|---|---|---|
message * | string | The full design brief, as one message. Name every screen you want in this single request. |
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
idempotencyKey | string | 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. |
imageUrls | array | HTTPS image URLs for visual input, such as screenshots, logos, or style references. |
referenceId | string | Design reference to imitate, from list_references. |
screenId | string | 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 i… |
wait | boolean | 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 sta… |
get_design_run Get a design run
Poll a run that design returned as 'queued' or 'running'. Wait a few seconds between polls. On 'completed', data.result.operations lists what the run saved: screens, theme changes, new variants and styles, which ones are in use, and removals. New kinds may be added, so skip any you don't know. 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…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
runId * | string | Run id from data.runId in a design result. |
cancel_design_run Cancel a design run
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 what it saved, removals included, 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 settle…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
runId * | string | Run id from data.runId in a design result. |
screenshot Render screens to an image
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.
| Parameter | Type | Description |
|---|---|---|
componentIds * | array | 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. |
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
background | string | CSS background behind the frames, such as "#ffffff" or "transparent". |
format | string | Image encoding for the screenshot. |
fullHeight | boolean | 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 defa… |
padding | integer | Space in pixels on each side of the row of frames. |
scale | integer | Pixel density. 1 is right for showing a design in chat; raise it only when the user asked for a high-resolution export. |
show_project Show a project's screens
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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
runId | string | Run id from data.runId in a design result. Marks the screens that run changed. |
style | string | The style to read, by its letter, such as b. Defaults to the project's main style. |
search_mentions Search projects to mention
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Text the project name contains, ignoring case. Empty returns the newest projects. |
get_project_view Load a project's screen viewer
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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project id from an item's id in list_projects, or data.id in create_project. |
locale | string | The host's BCP 47 locale, such as pt-BR. The viewer's text uses it when Sleek supports that language. |
runId | string | Run id from data.runId in a design result. Marks the screens that run changed. |
style | string | The style to read, by its letter, such as b. Defaults to the project's main style. |
open_sleek Sleek
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.
| Parameter | Type | Description |
|---|---|---|
locale | string | The host's BCP 47 locale, such as pt-BR. The sidebar's text uses it when Sleek supports that language. |