Skip to content
Python

Gate browser_switch_tab behind approval

Rohit C Prasade93f9a6648e7
diff --git a/coworker/connectors/browser_automation.py b/coworker/connectors/browser_automation.py
index fd904760..9b4001bd 100644
--- a/coworker/connectors/browser_automation.py
+++ b/coworker/connectors/browser_automation.py
@@ -708,7 +708,7 @@ def make_browser_automation_tools(
browser_switch_tab,
_schema(
"browser_switch_tab",
- "Switch subsequent browser actions to the tab at an index returned by browser_list_tabs.",
+ "Switch subsequent browser actions to the tab at an index returned by browser_list_tabs. Requires approval.",
{"index": {"type": "integer"}},
["index"],
),
diff --git a/coworker/connectors/tool_defs.py b/coworker/connectors/tool_defs.py
index 49014480..4fbdd576 100644
--- a/coworker/connectors/tool_defs.py
+++ b/coworker/connectors/tool_defs.py
@@ -147,7 +147,7 @@ TOOL_DEFS: tuple[ConnectorToolDef, ...] = (
"browser",
"browser_switch_tab",
"Switch tab",
- "read",
+ "write",
"Switch subsequent browser actions to another tab.",
),
ConnectorToolDef(