hermes - 💡(How to fix) Fix browser_tool.py: expose agent-browser upload command for file input elements [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#18056Fetched 2026-05-01 05:54:09
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×3commented ×2mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

Problem

The Hermes browser toolset (browser_navigate, browser_click, browser_type, etc.) does not expose the agent-browser upload command, which accepts a CSS selector/@ref and a local file path to upload a file to an input[type=file] element.

Without this, agents interacting with pages that require file uploads (e.g. image upload forms, document submission interfaces) have no way to complete the workflow via the browser tool alone.

What was done locally

Added browser_upload_file(ref, path) to tools/browser_tool.py:

  • Schema entry in BROWSER_TOOL_SCHEMAS
  • Function that delegates to agent-browser upload <ref> <path>
  • Registry registration with check_fn and paperclip emoji
  • Added to browser_tools list in model_tools.py

Proposed upstream change

Add the same function and tool registration to the main branch so all users benefit. The implementation is minimal — agent-browser already supports upload natively; Hermes just needed to wrap it.

extent analysis

TL;DR

The proposed solution involves adding a browser_upload_file function to the Hermes browser toolset to enable file uploads via the agent-browser upload command.

Guidance

  • Review the implementation of browser_upload_file in tools/browser_tool.py to ensure it correctly delegates to agent-browser upload <ref> <path>.
  • Verify that the schema entry in BROWSER_TOOL_SCHEMAS is correctly defined for the new browser_upload_file function.
  • Test the new function with various CSS selectors and local file paths to ensure it works as expected.
  • Consider adding error handling for cases where the file upload fails or the input[type=file] element is not found.

Example

def browser_upload_file(ref, path):
    # Delegate to agent-browser upload command
    return agent_browser.upload(ref, path)

Notes

The proposed solution relies on the agent-browser tool already supporting the upload command, so no additional changes are needed outside of the Hermes browser toolset.

Recommendation

Apply the proposed upstream change by adding the browser_upload_file function and tool registration to the main branch, as it provides a minimal and effective solution to the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING