Sleek

v1.0.1
design.sleek/sleek Checked 2 days ago Published 1 month ago

Design 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.

ParameterTypeDescription
limitintegerNumber of items to return.
offsetintegerNumber 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.

ParameterTypeDescription
name *stringDisplay 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.

ParameterTypeDescription
projectId *stringProject 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.

ParameterTypeDescription
confirm *booleanSet only after your user confirms this exact project by name. Deletion is irreversible.
projectId *stringProject 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.

ParameterTypeDescription
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
limitintegerNumber of items to return.
offsetintegerNumber of items to skip before this page.
stylestringThe 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.

ParameterTypeDescription
componentId *stringComponent id from an item's id in list_components, or a componentId in a run's data.result.operations. Not a screenId.
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
allVersionsbooleanReturn every stored version instead of just the active one. Payloads grow quickly; leave it off unless you need the history.
inlineIconsbooleanInline 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.

ParameterTypeDescription
limitintegerNumber of items to return.
offsetintegerNumber 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_…

ParameterTypeDescription
message *stringThe full design brief, as one message. Name every screen you want in this single request.
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
idempotencyKeystringPick 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.
imageUrlsarrayHTTPS image URLs for visual input, such as screenshots, logos, or style references.
referenceIdstringDesign reference to imitate, from list_references.
screenIdstringEdit 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…
waitbooleanWait 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…

ParameterTypeDescription
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
runId *stringRun 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…

ParameterTypeDescription
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
runId *stringRun 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.

ParameterTypeDescription
componentIds *arrayComponent 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 *stringProject id from an item's id in list_projects, or data.id in create_project.
backgroundstringCSS background behind the frames, such as "#ffffff" or "transparent".
formatstringImage encoding for the screenshot.
fullHeightbooleanExpand 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…
paddingintegerSpace in pixels on each side of the row of frames.
scaleintegerPixel 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.

ParameterTypeDescription
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
runIdstringRun id from data.runId in a design result. Marks the screens that run changed.
stylestringThe 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.

ParameterTypeDescription
query *stringText 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.

ParameterTypeDescription
projectId *stringProject id from an item's id in list_projects, or data.id in create_project.
localestringThe host's BCP 47 locale, such as pt-BR. The viewer's text uses it when Sleek supports that language.
runIdstringRun id from data.runId in a design result. Marks the screens that run changed.
stylestringThe 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.

ParameterTypeDescription
localestringThe host's BCP 47 locale, such as pt-BR. The sidebar's text uses it when Sleek supports that language.