forge_init
Scaffold a new Foundry project at a specified path, optionally using a template, skipping Git initialization, or committing initial files.
Instructions
Scaffold a new Foundry project (forge init).
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_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noGit | No | Do not initialize a git repository | |
| commit | No | Create a commit after initializing (default: false) | |
| template | No | GitHub template repository (e.g. foundry-rs/forge-template) | |
| projectPath | Yes | Absolute path where the project should be initialized |