svelte_definition
Locate the definition of a Svelte symbol at a given line and character position, using a saved component file or inline source.
Instructions
Find where the symbol at a position is defined.
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": {
"position": "<position>"
},
"name": "svelte_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to a saved .svelte component inside the workspace. Relative paths start at the workspace root. | |
| source | No | Full Svelte component source. Supply source or file. Source uses the bundled Svelte runtime. | |
| position | Yes |