format_file
Format SystemVerilog files according to lazyverilog.toml [format] rules; optionally format a specific line range or preview the diff before writing changes.
Instructions
Format a file with the project's lazyverilog.toml [format] rules. Give start_line/end_line (1-based, inclusive) to format only that range.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | SystemVerilog file path, absolute or relative to the workspace root | |
| preview | No | Return the diff without writing (default false) | |
| end_line | No | 1-based line number | |
| start_line | No | 1-based line number |