lean_build
Builds the Lean project and restarts the language server to apply new imports or resolve build issues. Use only when needed after import or dependency changes.
Instructions
Build the Lean project and restart LSP. Use only if needed (e.g. new imports).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | Run lake clean first (slow) | |
| fetch_cache | No | Run lake exe cache get before building (slow) | |
| output_lines | No | Return last N lines of build log (0=none) | |
| lean_project_path | No | Path to Lean project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Build errors if any | |
| output | Yes | Build output | |
| success | Yes | Whether build succeeded |