pub async fn search_files( pattern: &str, path: &str, recursive: bool, max_matches: Option<usize>, ) -> Result<String>
Search files for a pattern asynchronously.
Returns a JSON string containing the matches.