forge_clean
Remove build artifacts from a Foundry project to clear stale compiled files and reset the build directory before rebuilding or testing.
Instructions
Remove build artifacts from a Foundry project (forge clean).
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_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the foundry project directory |