Export to Storybook
stitch_to_storybookExport a Stitch project to Storybook: generates one component file and one story file per screen for your target framework, plus a minimal .storybook/ configuration.
Instructions
Export a Stitch project to Storybook stories for a given framework (react, nextjs, vue, nuxt, svelte, sveltekit). Writes one component file + one story file per screen, plus a minimal .storybook/ configuration.
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": {
"projectId": "<projectId>"
},
"name": "stitch_to_storybook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Output directory for stories and components | ./stitch-stories |
| framework | No | Target framework for the Storybook stories | react |
| projectId | Yes | Stitch project ID |