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.
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": {
"root": "<root>",
"path": "<path>"
},
"name": "get_component"
}
}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. |