Skip to content

Storybook Tools

2 tools for Storybook integration. Registered after detect finds Storybook.

component_stories

List all stories in a Storybook instance.

ParameterTypeDefaultDescription
storybookUrlstringauto-detected or http://localhost:6006Storybook 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.

ParameterTypeDefaultDescription
storyIdstringrequiredStory ID from component_stories
storybookUrlstringauto-detected or http://localhost:6006Storybook 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.

Released under the MIT License.