formatDocument
Format any file using VS Code formatter or CLI tools like Prettier, Biome, Black, gofmt, or rustfmt. Specify the file path to apply consistent formatting.
Instructions
Format file via VS Code formatter or CLI fallback (prettier/biome/black/gofmt/rustfmt).
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": {
"filePath": "<filePath>"
},
"name": "formatDocument"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File to format (relative or absolute path) |