format
Format a file using the language server's formatter and write the formatted result to disk.
Instructions
Format a file using the language server's formatter and write the result to disk.
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": {
"file": "<file>"
},
"name": "format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root | |
| tabSize | No | Spaces per indentation level (default 2) | |
| insertSpaces | No | Indent with spaces instead of tabs (default true) |