get_component_dependencies
Analyzes rendered HTML to identify React components, web components, and CSS class patterns a given component uses, helping you map internal dependencies for refactoring.
Instructions
Analyze rendered HTML to find which other components a given component internally uses by detecting React components, web components, and CSS class patterns
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": {
"componentId": "<componentId>"
},
"name": "get_component_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentId | Yes | The story ID of the component (e.g., "example-button--primary") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storyId | Yes | ||
| dependencies | Yes | ||
| externalComponents | Yes | Components matching a known library prefix (Mui, Ant, Bootstrap, ...) | |
| internalComponents | Yes |