Sketch a screen
sketch_uiRender a UI sketch built from the company's own components in the warm Lab: story_source is a Storybook CSF story (TypeScript) that imports components from the repo (component_catalog lists them) and composes the screen. It renders at each width × theme (375 and 1440, light and dark by default) and comes back with a PNG and an HTML page per view, console errors, and which components it used or made new. Unless save: false, it is saved to the company's Knowledge as a clickable page mockup (with content.sketch) and the result has its app_url. It spends Lab time, so you confirm in a dialog first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>",
"title": "<title>",
"story_source": "<story_source>"
},
"name": "sketch_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | the repo whose components it uses: full name (owner/repo) or id | |
| save | No | save it as a page mockup in Knowledge (true by default) | |
| title | Yes | what the sketch shows, e.g. "Plans dialog after a launch" | |
| themes | No | light, dark or both (both by default) | |
| widths | No | viewport widths: 375, 768, 1024, 1280, 1440 (375 and 1440 by default) | |
| company | No | the company id (list_companies); not needed when you have one company, asked for otherwise | |
| variants | No | the story's exports to render, when it has several (Default when left out) | |
| interactive | No | a clickable HTML build of the story (true by default); false keeps a static snapshot | |
| story_source | Yes | the story: CSF that imports the repo's components and renders the screen |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||