Get unused components
get_unusedIdentify imported Svelte components that are never rendered in any template. Get a project-wide list of unused components, independent of file order.
Instructions
Return every component that is imported somewhere in the project but rendered nowhere (never referenced in any importer's template). Computed globally, so the result does not depend on file order.
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>"
},
"name": "get_unused"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute path to the SvelteKit/Svelte project root to analyze. |