forge_fmt
Format Solidity source files to match project style, or verify formatting without modifying files by setting check=true.
Instructions
Format Solidity source files (forge fmt). Use check=true to verify formatting without changes.
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": {
"projectPath": "<projectPath>"
},
"name": "forge_fmt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | Check formatting without modifying files | |
| projectPath | Yes | Absolute path to the foundry project directory |