Storybook Tools
2 tools for Storybook integration. Registered after detect finds Storybook.
component_stories
List all stories in a Storybook instance.
| Parameter | Type | Default | Description |
|---|---|---|---|
storybookUrl | string | auto-detected or http://localhost:6006 | Storybook URL |
Returns: Array of stories with id, title, name, and type (story, docs).
component_render_story
Render a specific story in isolation and capture it.
| Parameter | Type | Default | Description |
|---|---|---|---|
storyId | string | required | Story ID from component_stories |
storybookUrl | string | auto-detected or http://localhost:6006 | Storybook URL |
Returns: Screenshot of the rendered story plus the component tree for the story's root component.
Useful for running audits against individual stories:
> Render the "Button--primary" story and audit its accessibility
Calls component_render_story → audit_a11y → audit_contrast
on the isolated story frame.