[Bugfix][Responses] Fix browser.find action type (#55305)

Signed-off-by: nicole-lihui <nicole.li@daocloud.io>
Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
This commit is contained in:
Nicole LiHui 🥜
2026-09-11 12:07:04 +00:00
committed by GitHub
co-authored by Chauncey
parent b4da4d17ae
commit 7ef4d9bfed
4 changed files with 46 additions and 2 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ def _parse_browser_tool_call(message: Message, recipient: str) -> ResponseOutput
action = ActionFind(
pattern=browser_call.get("pattern", ""),
url=f"cursor:{browser_call.get('url', '')}",
type="find",
type="find_in_page",
)
else:
raise ValueError(f"Unknown browser action: {recipient}")
@@ -667,7 +667,7 @@ def emit_browser_tool_events(
)
elif function_name == "find":
action = response_function_web_search.ActionFind(
type="find",
type="find_in_page",
pattern=parsed_args["pattern"],
# TODO: translate to url
url=f"cursor:{parsed_args.get('cursor', '')}",