lean_build
Rebuild a Lean project and restart the LSP server to pick up new imports, with an optional clean build for thorough rebuilding.
Instructions
Build the Lean project and restart the LSP Server.
Use only if needed (e.g. new imports).
Args:
lean_project_path (str, optional): Path to the Lean project. If not provided, it will be inferred from previous tool calls.
clean (bool, optional): Run `lake clean` before building. Attention: Only use if it is really necessary! It can take a long time! Defaults to False.
Returns:
str: Build output or error msg
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | ||
| lean_project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |