Skip to content

Commit c3843b1

Browse files
committed
fix search tool
1 parent da570a1 commit c3843b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stagehand/agent/google_cua.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def _process_provider_response(
349349
action_type_str = "function"
350350
action_payload_dict = {
351351
"type": "function",
352-
"name": "goto",
352+
"name": "search",
353353
"arguments": {"url": "https://www.google.com"},
354354
}
355355
else:

stagehand/handlers/cua_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async def perform_action(self, action: AgentAction) -> ActionExecutionResult:
142142
# specific_action_model is FunctionAction
143143
name = specific_action_model.name
144144
args = getattr(specific_action_model, "arguments", {})
145-
if name == "goto" and args.url:
145+
if name == "search" and args.url:
146146
await self.page.goto(args.url)
147147
return {"success": True}
148148
elif name == "navigate_back":

0 commit comments

Comments
 (0)