Feature Request: add descriptions to four built-in actions

Đang mở Phù hợp với người mới
#6,352 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
88/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

Bắt đầu tại browser_use/tools/service.py, ở bốn đăng ký được nêu trong issue: search (dòng 458), navigate (502), upload_file (860) và send_keys (1484). Đọc cách các mô tả được truyền vào Registry.action() và hiển thị bởi RegisteredAction.prompt_description(); thêm dòng được đề xuất cho mỗi action. Hoàn thành khi cả bốn mô tả xuất hiện trong action prompt đã render và không có thay đổi về hành vi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What is the problem that your feature request solves?

Four built-in actions in browser_use/tools/service.py are registered with an empty description string:

  • search (service.py:458)
  • navigate (service.py:502)
  • upload_file (service.py:860)
  • send_keys (service.py:1484)

Registry.action() stores the description directly (registry/service.py:291-318), RegisteredAction.prompt_description() renders it into the prompt (registry/views.py:31-56), and create_action_model() uses it as the action field description (registry/service.py:519-568). With an empty string, the model sees search: . (query, engine) instead of a line explaining when to use the action. The parameter schemas are documented separately.

What is your proposed solution?

Add one line per action, with no behavior change:

  • search: Search the web for a query and open the results page.
  • navigate: Navigate to a URL in the current tab or a new tab.
  • upload_file: Upload a file from an allowed local path to the file input.
  • send_keys: Send keyboard keys or a shortcut (e.g. Enter, Control+o) to the focused element.

I can open a small PR with these four strings if that is useful. It would not change behavior, dependencies, or the public API.

What hacks or alternative solutions have you tried to solve the problem?

None at runtime; this is a static source audit with mf (https://github.com/modelfunction/cli), which runs locally and does not execute the scanned code. A user can work around it by wrapping these actions in custom Tools, but that duplicates built-ins. I have not run the agent against a live model for this report.

Ngôn ngữ chính
Python
Star
123k
Fork
13.8k
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của browser-use/browser-use

Tất cả issue của browser-use/browser-use

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.