scaffold_story
Generate a CSF3 stories file for a new component following Storybook conventions, and cache it locally so other tools see it before redeployment.
Instructions
Call after creating a new component: generates a CSF3 *.stories.tsx file that follows this Storybook's conventions, and remembers the component locally so other tools see it before Storybook is redeployed. Returns file content only; write it yourself.
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": {
"componentName": "<componentName>",
"componentSource": "<componentSource>"
},
"name": "scaffold_story"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| importPath | No | ||
| description | No | ||
| componentName | Yes | ||
| componentSource | Yes | ||
| referenceComponent | No |