Delimit Story Generate
delimit_story_generateScaffold a .stories.tsx file for a React/TSX component, generating per-variant stories without installing Storybook. Writes the file alongside the component for component-first authoring.
Instructions
Generate a .stories.tsx file for a UI component (no Storybook required).
When to use: to scaffold per-variant stories for a React/TSX component without installing the full Storybook toolchain. When NOT to use: for accessibility checks (use delimit_story_accessibility) or component scaffolding from scratch (delimit_design_generate_component).
Sibling contrast: delimit_design_generate_component creates the component; this generates its stories file. Together they form a component-first authoring path.
Side effects: writes a new .stories.tsx file next to the component. Coerces variants from a comma string to a list via _coerce_list_arg.
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": {
"component_path": "<component_path>"
},
"name": "delimit_story_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | No | Variants to generate (e.g. "Default,WithChildren"). Default = ["Default", "WithChildren"]. | |
| story_name | No | Custom story name. Default = component name. | |
| component_path | Yes | Path to the component (.tsx) file. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||