svelte_rename
Preview workspace edits for renaming a symbol at a given position, letting you verify every affected file before applying the rename to a Svelte component.
Instructions
Preview the workspace edit for renaming a symbol.
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>",
"newName": "<newName>"
},
"name": "svelte_rename"
}
}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. | |
| newName | Yes | Proposed symbol name. | |
| position | Yes |