svelte_format
Preview formatting edits for saved or inline Svelte components using project configuration, so you can review changes before applying them.
Instructions
Preview text edits to format the component using its project configuration.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "svelte_format"
}
}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. | |
| tabSize | No | ||
| insertSpaces | No |