preview_story
Generate a Storybook iframe URL to preview any story, with optional args, globals, and viewport settings for customized rendering.
Instructions
Build a Storybook iframe preview URL for a story with optional args, globals, and viewport.
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": {
"storyId": "<storyId>"
},
"name": "preview_story"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| globals | No | ||
| storyId | Yes | ||
| viewport | No |