fix_file
Applies Solhint autofixes to a single Solidity file, previewing changes by default and saving them only when write is true.
Instructions
Apply Solhint autofixes to one Solidity file. Previews the result by default; pass write: true to save it.
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": "fix_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| write | No | Write the fixed source back to the file. Defaults to false (preview only). | |
| filePath | Yes | Path relative to the project root |