compile_project
Automatically detects and runs fpm build or make to compile Fortran projects based on their layout.
Instructions
Compiles the Fortran project. Automatically detects and runs 'fpm build' or 'make' depending on layout.
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": {
"project_path": "<project_path>"
},
"name": "compile_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | The path of the project. | |
| fortran_version | No | The Fortran standard version to enforce (e.g. 'f95', 'f2003', 'f2008', 'f2018', 'f2023'). Defaults to 'f2018'. | f2018 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |