Merge pull request #864 from yihong0618/hy/fix_issue_787
fix: simple browser use tool desc for gpt4o max len close #787
This commit is contained in:
@@ -17,33 +17,34 @@ from app.tool.web_search import WebSearch
|
||||
|
||||
|
||||
_BROWSER_DESCRIPTION = """
|
||||
Interact with a web browser to perform various actions such as navigation, element interaction, content extraction, and tab management. This tool provides a comprehensive set of browser automation capabilities:
|
||||
Interact with a web browser for navigation, element interaction, content extraction, and tab management using these tools:
|
||||
|
||||
Navigation:
|
||||
- 'go_to_url': Go to a specific URL in the current tab
|
||||
- 'go_back': Go back
|
||||
- 'refresh': Refresh the current page
|
||||
- 'web_search': Search the query in the current tab, the query should be a search query like humans search in web, concrete and not vague or super long. More the single most important items.
|
||||
|
||||
- 'go_to_url': Visit a specific URL
|
||||
- 'go_back': Navigate back
|
||||
- 'refresh': Reload the page
|
||||
- 'web_search': Search a concise query in the current tab
|
||||
Element Interaction:
|
||||
|
||||
- 'click_element': Click an element by index
|
||||
- 'input_text': Input text into a form element
|
||||
- 'scroll_down'/'scroll_up': Scroll the page (with optional pixel amount)
|
||||
- 'scroll_to_text': If you dont find something which you want to interact with, scroll to it
|
||||
- 'send_keys': Send strings of special keys like Escape,Backspace, Insert, PageDown, Delete, Enter, Shortcuts such as `Control+o`, `Control+Shift+T` are supported as well. This gets used in keyboard.press.
|
||||
- 'get_dropdown_options': Get all options from a dropdown
|
||||
- 'select_dropdown_option': Select dropdown option for interactive element index by the text of the option you want to select
|
||||
|
||||
- 'input_text': Enter text into a form
|
||||
- 'scroll_down'/'scroll_up': Scroll page (optional pixels)
|
||||
- 'scroll_to_text': Scroll to specific text
|
||||
- 'send_keys': Send special keys (e.g., Enter, Control+O)
|
||||
- 'get_dropdown_options': List dropdown options
|
||||
- 'select_dropdown_option': Select a dropdown option by text
|
||||
Content Extraction:
|
||||
- 'extract_content': Extract page content to retrieve specific information from the page, e.g. all company names, a specifc description, all information about, links with companies in structured format or simply links
|
||||
|
||||
- 'extract_content': Retrieve specific page info (e.g., company names, links)
|
||||
Tab Management:
|
||||
- 'switch_tab': Switch to a specific tab
|
||||
- 'open_tab': Open a new tab with a URL
|
||||
- 'close_tab': Close the current tab
|
||||
|
||||
- 'switch_tab': Switch to a tab
|
||||
- 'open_tab': Open a new tab with URL
|
||||
- 'close_tab': Close current tab
|
||||
Utility:
|
||||
- 'wait': Wait for a specified number of seconds
|
||||
|
||||
- 'wait': Pause for specified seconds
|
||||
"""
|
||||
|
||||
Context = TypeVar("Context")
|
||||
|
||||
Reference in New Issue
Block a user