Skip to content

工具参数:Computer action 操作类型

Tool Parameter: Computer action

v2.0.71

Action parameter options for the Chrome browser computer tool

要执行的操作:

  • left_click:在指定坐标处点击鼠标左键。
  • right_click:在指定坐标处点击鼠标右键以打开上下文菜单。
  • double_click:在指定坐标处双击鼠标左键。
  • triple_click:在指定坐标处三击鼠标左键。
  • type:输入一串文本。
  • screenshot:截取屏幕截图。
  • wait:等待指定的秒数。
  • scroll:在指定坐标处向上、向下、向左或向右滚动。
  • key:按下特定的键盘按键。
  • left_click_drag:从起始坐标拖拽到目标坐标。
  • zoom:截取特定区域的屏幕截图以便更仔细地查看。
  • scroll_to:使用来自 read_page 或 find 工具的元素引用 ID,将元素滚动到视图中。
  • hover:将鼠标光标移动到指定坐标或元素上而不点击。适用于显示工具提示、下拉菜单或触发悬停状态。

英文原文 / English Original

The action to perform:

  • left_click: Click the left mouse button at the specified coordinates.
  • right_click: Click the right mouse button at the specified coordinates to open context menus.
  • double_click: Double-click the left mouse button at the specified coordinates.
  • triple_click: Triple-click the left mouse button at the specified coordinates.
  • type: Type a string of text.
  • screenshot: Take a screenshot of the screen.
  • wait: Wait for a specified number of seconds.
  • scroll: Scroll up, down, left, or right at the specified coordinates.
  • key: Press a specific keyboard key.
  • left_click_drag: Drag from start_coordinate to coordinate.
  • zoom: Take a screenshot of a specific region for closer inspection.
  • scroll_to: Scroll an element into view using its element reference ID from read_page or find tools.
  • hover: Move the mouse cursor to the specified coordinates or element without clicking. Useful for revealing tooltips, dropdown menus, or triggering hover states.