MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / go_back

Method go_back

src/environment/browser/service.py:304–324  ·  view source on GitHub ↗

Go back

(self, request: GoBackRequest)

Source from the content-addressed store, hash-verified

302 )
303
304 async def go_back(self, request: GoBackRequest) -> ActionResult:
305 """Go back"""
306 try:
307 event = self._session.event_bus.dispatch(GoBackEvent())
308 await event
309 memory = 'Navigated back'
310 msg = f'🔙 {memory}'
311 logger.info(msg)
312 return ActionResult(
313 success=True,
314 message=msg,
315 extra={"memory": memory}
316 )
317 except Exception as e:
318 logger.error(f'Failed to dispatch GoBackEvent: {type(e).__name__}: {e}')
319 error_msg = f'Failed to go back: {str(e)}'
320 return ActionResult(
321 success=False,
322 message=error_msg,
323 extra={"error": error_msg}
324 )
325
326 async def wait(self, request: WaitRequest) -> ActionResult:
327 """Wait for x seconds (default 3) (max 30 seconds). This can be used to wait until the page is fully loaded."""

Callers

nothing calls this directly

Calls 4

GoBackEventClass · 0.90
ActionResultClass · 0.90
infoMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected