Get one component
get_componentRetrieve a Svelte component's dependency graph details by path: parents, children, route/unused status, and Svelte 5 props and slots.
Instructions
Look up a single component or route by its workspace-relative path (e.g. "src/lib/Button.svelte"). Returns its parents (components that import it), children (components it imports), whether it is unused/a route, and its Svelte 5 public API surface: props (name, optional, bindable, rest) and slots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Workspace-relative path to the component, e.g. "src/lib/Button.svelte". | |
| root | Yes | Absolute path to the SvelteKit/Svelte project root to analyze. |