pub fn validate_tool_input(schema: &Value, input: &Value) -> Result<(), String>Expand description
Validate tool input against the tool’s declared JSON Schema.
Returns Ok(()) if valid, Err(error_message) if the input
does not conform. The error message is suitable for sending back
to the LLM so it can self-correct.