fix_solidity
Applies Solhint autofixes to a Solidity code string and returns the corrected source without modifying any files.
Instructions
Apply Solhint autofixes to a Solidity source string and return the corrected source. Does not touch any file.
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": {
"code": "<code>"
},
"name": "fix_solidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Solidity source code to fix | |
| config | No | Optional complete Solhint config object |