@@ -477,20 +477,20 @@ impl BrowserTool {
477477 return Ok ( BrowserOutput :: success ( "Browser already running" ) ) ;
478478 }
479479
480- let use_external = self
480+ let is_connect = self
481481 . config
482482 . connect_url
483483 . as_deref ( )
484484 . is_some_and ( |url| !url. is_empty ( ) ) ;
485485
486- if use_external {
487- self . launch_external ( & mut state) . await
486+ if is_connect {
487+ self . connect ( & mut state) . await
488488 } else {
489- self . launch_embedded ( & mut state) . await
489+ self . launch ( & mut state) . await
490490 }
491491 }
492492
493- async fn launch_external (
493+ async fn connect (
494494 & self ,
495495 state : & mut BrowserState ,
496496 ) -> Result < BrowserOutput , BrowserError > {
@@ -516,7 +516,7 @@ impl BrowserTool {
516516 ) ) )
517517 }
518518
519- async fn launch_embedded (
519+ async fn launch (
520520 & self ,
521521 state : & mut BrowserState ,
522522 ) -> Result < BrowserOutput , BrowserError > {
@@ -536,7 +536,7 @@ impl BrowserTool {
536536 tracing:: info!(
537537 headless = self . config. headless,
538538 executable = ?self . config. executable_path,
539- "launching embedded browser"
539+ "launching browser"
540540 ) ;
541541
542542 let ( browser, mut handler) = Browser :: launch ( chrome_config)
@@ -549,7 +549,7 @@ impl BrowserTool {
549549 state. _handler_task = Some ( handler_task) ;
550550 state. external = false ;
551551
552- tracing:: info!( "embedded browser launched" ) ;
552+ tracing:: info!( "browser launched" ) ;
553553 Ok ( BrowserOutput :: success ( "Browser launched successfully" ) )
554554 }
555555
0 commit comments