Repository navigation
v1.15.3 - Pi Parameter Validation Fix
Fixed
- Pi Custom Tools: Parameter Handling - Fixed parameter validation and default values
- Added validation for all required parameters (file, target, section, etc.)
- Added explicit default value handling using
??operator for optional parameters - Prevents tools from failing when Pi doesn't pass parameter values
- Solves critical issue where tools failed with missing parameters:
- Root cause: TypeBox default values not automatically populated in params object
- Pi may call tools without passing values, even for required parameters
- All 9 tools now validate inputs and handle defaults correctly
- Clear error messages guide LLM to provide required parameters
Example
Before this fix, Pi might call invar_sig() without a target parameter, causing:
Failed to get signatures: undefined
After this fix, the tool validates and provides clear feedback:
Missing required parameter: target (file path or file::symbol)