diff --git a/openai_server/agent_tools/web_agent_tool.py b/openai_server/agent_tools/web_agent_tool.py index b08863807..ed0b511d2 100644 --- a/openai_server/agent_tools/web_agent_tool.py +++ b/openai_server/agent_tools/web_agent_tool.py @@ -202,7 +202,10 @@ def find_on_page_ctrl_f(self, search_string: str) -> str: + "' was not found on this page." ) else: - return header.strip() + "\n=======================\n" + content + return (header.strip() + "\n=======================\n" + + content + "\n=======================\n" + + f"Note: {search_string} found in the current viewport" + ) def find_next(self) -> str: find_result = self.browser.find_next()