MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / open

Method open

plugins/_browser/helpers/runtime.py:888–899  ·  view source on GitHub ↗
(self, url: str = "")

Source from the content-addressed store, hash-verified

886 PrintStyle.warning(f"Could not force-stop orphaned Chromium process {pid}: {exc}")
887
888 async def open(self, url: str = "") -> dict[str, Any]:
889 await self.ensure_started()
890 self._ensure_can_open_page()
891 page = await self.context.new_page()
892 browser_page = await self._register_page(page)
893 self.last_interacted_browser_id = browser_page.id
894 target_url = self._initial_url(url)
895 if target_url and target_url != "about:blank":
896 await self._goto(page, normalize_url(target_url))
897 else:
898 await self._settle(page)
899 return {"id": browser_page.id, "state": await self._state(browser_page.id)}
900
901 def _initial_url(self, url: str = "") -> str:
902 raw_url = str(url or "").strip()

Callers 15

_dispatch_callMethod · 0.95
openContainingFolderFunction · 0.45
_safe_extract_zipFunction · 0.45
openStaticScreenshotFunction · 0.45
openSelectedProviderDocsFunction · 0.45
connectOAuthFunction · 0.45
_write_atomicFunction · 0.45
_open_documentMethod · 0.45
openFileBrowserFunction · 0.45
openSkillFunction · 0.45
_auth_file_lockFunction · 0.45
_read_auth_file_unlockedFunction · 0.45

Calls 8

ensure_startedMethod · 0.95
_ensure_can_open_pageMethod · 0.95
_register_pageMethod · 0.95
_initial_urlMethod · 0.95
_gotoMethod · 0.95
_settleMethod · 0.95
_stateMethod · 0.95
normalize_urlFunction · 0.90

Tested by

no test coverage detected