diff --git a/strix/tools/browser/browser_actions.py b/strix/tools/browser/browser_actions.py
index 82b0da00..cb327de8 100644
--- a/strix/tools/browser/browser_actions.py
+++ b/strix/tools/browser/browser_actions.py
@@ -30,7 +30,6 @@ BrowserUseLocalAction = Literal[
"wait",
"click",
"input",
- "upload_file",
"scroll",
"find_text",
"send_keys",
@@ -178,6 +177,7 @@ async def _run_browser_tool(
await session.browser.start()
llm, _ = _build_llm(metadata=metadata)
+ tools = Tools()
if session.local:
from pathlib import Path
@@ -199,8 +199,10 @@ async def _run_browser_tool(
return soft_error
file_system = StubFileSystem()
+ # [security] sandboxed browsers have no local filesystem access
+ tools.exclude_action("upload_file")
- return await Tools().registry.execute_action(
+ return await tools.registry.execute_action(
action,
params=params,
browser_session=session.browser,
diff --git a/strix/tools/browser/browser_actions_schema.xml b/strix/tools/browser/browser_actions_schema.xml
index 276a658c..cd12318e 100644
--- a/strix/tools/browser/browser_actions_schema.xml
+++ b/strix/tools/browser/browser_actions_schema.xml
@@ -32,8 +32,7 @@
**Page Interaction:**
- click: Click element by index. Requires 'index'.
- input: Input text into form fields. Requires 'index' and 'text', optional 'clear'.
- - upload_file: Upload files. Requires 'index' and 'path'.
- - scroll: Scroll the page. Optional 'down' (bool), 'pages' (float), 'index'.
+- scroll: Scroll the page. Optional 'down' (bool), 'pages' (float), 'index'.
- find_text: Scroll to specific text. Requires 'text'.
- send_keys: Send special keys (Enter, Escape, etc.). Requires 'keys'.
@@ -79,7 +78,7 @@
Seconds to wait for 'wait' action.
- Element index from the DOM state. Used by: click, input, upload_file, dropdown_options, select_dropdown, scroll (for scrollable elements).
+ Element index from the DOM state. Used by: click, input, dropdown_options, select_dropdown, scroll (for scrollable elements).
Text content. Required for 'input', 'select_dropdown', and 'find_text' actions.
@@ -87,9 +86,6 @@
Clear existing text before input. Used by 'input' action. Default: false.
-
- File path for 'upload_file' action.
-
Scroll direction for 'scroll' action. True=down, False=up. Default: true.
@@ -232,13 +228,6 @@
admin@example.com
- # Upload a file
-
- upload_file
- 7
- /path/to/file.pdf
-
-
# Scroll down
scroll