ZHZisZZ
tmp save
a3f133e
DESKTOP_USE_ATOMIC_TOOLS_LIST = [
{
"type": "function",
"function": {
"name": "key",
"description": "On a desktop, press and release keys.",
"parameters": {
"type": "object",
"properties": {
"keys": {
"type": "array",
"items": {"type": "string"},
"description": "List of keys to press."
}
},
"required": ["keys"]
}
}
},
{
"type": "function",
"function": {
"name": "type",
"description": "On a desktop, type text content into the currently focused input field.",
"parameters": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The text content to type."
}
},
"required": ["text"]
}
}
},
{
"type": "function",
"function": {
"name": "mouse_move",
"description": "On a desktop, move the mouse cursor to specified coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates normalized to [0, 1000]."
}
},
"required": ["coordinate"]
}
}
},
{
"type": "function",
"function": {
"name": "click",
"description": "On a desktop, perform mouse click at specified coordinates. Default is at current cursor position.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates normalized to [0, 1000]. Default is current cursor position."
},
"button": {
"type": "string",
"enum": ["left", "right", "middle"],
"description": "Mouse button to click. Default is 'left'."
},
"clicks": {
"type": "integer",
"enum": [1, 2, 3],
"description": "Number of clicks: 1=single, 2=double, 3=triple. Default is 1."
}
},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "drag",
"description": "On a desktop, drag the mouse from start to end coordinates. Default start is current cursor position.",
"parameters": {
"type": "object",
"properties": {
"start_coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "Starting (x, y) coordinates, normalized to [0, 1000]. Default is current cursor position."
},
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "Ending (x, y) coordinates, normalized to [0, 1000]."
},
"button": {
"type": "string",
"enum": ["left", "right", "middle"],
"description": "Mouse button to hold while dragging. Default is 'left'."
}
},
"required": ["coordinate"]
}
}
},
{
"type": "function",
"function": {
"name": "mouse_down",
"description": "On a desktop, press the mouse button without releasing.",
"parameters": {
"type": "object",
"properties": {
"button": {
"type": "string",
"enum": ["left", "right", "middle"],
"description": "Mouse button to press. Default is 'left'."
}
},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "mouse_up",
"description": "On a desktop, release the mouse button.",
"parameters": {
"type": "object",
"properties": {
"button": {
"type": "string",
"enum": ["left", "right", "middle"],
"description": "Mouse button to release. Default is 'left'."
}
},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "scroll",
"description": "On a desktop, scroll in a specified direction by a specified amount. Default is at current cursor position.",
"parameters": {
"type": "object",
"properties": {
"direction": {
"type": "string",
"enum": ["up", "down", "left", "right"],
"description": "The direction to scroll."
},
"amount": {
"type": "integer",
"description": "Number of scroll units."
},
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates normalized to [0, 1000]. If provided, cursor moves to this position before scrolling. Default is current cursor position."
}
},
"required": ["direction", "amount"]
}
}
},
{
"type": "function",
"function": {
"name": "hold_key",
"description": "On a desktop, hold keys down for a specified duration.",
"parameters": {
"type": "object",
"properties": {
"keys": {
"type": "array",
"items": {"type": "string"},
"description": "List of keys to hold down."
},
"duration": {
"type": "number",
"description": "Duration in seconds."
}
},
"required": ["keys", "duration"]
}
}
},
{
"type": "function",
"function": {
"name": "wait",
"description": "On a desktop, pause execution for a specified duration.",
"parameters": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "Time in seconds to wait."
}
},
"required": ["duration"]
}
}
},
{
"type": "function",
"function": {
"name": "screenshot",
"description": "On a desktop, take a screenshot.",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "cursor_position",
"description": "On a desktop, get the current cursor position.",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "terminate",
"description": "On a desktop, signal that the task is completed or failed.",
"parameters": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": ["success", "failure"],
"description": "The final status of the task."
},
"reason": {
"type": "string",
"description": "Explanation of the result or reason for failure."
}
},
"required": ["status"]
}
}
}
]
POINT_TOOLS_LIST = [
{
"type": "function",
"function": {
"name": "point",
"description": "Locate a specific object on the screen by returning its center coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates representing the center of the described object, normalized to [0, 1000]."
}
},
"required": ["coordinate"]
}
}
}
]
BBOX_TOOLS_LIST = [
{
"type": "function",
"function": {
"name": "bbox",
"description": "Locate a specific object on the screen by returning its bounding box coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x_min, y_min, x_max, y_max) defining the bounding box, where (x_min, y_min) is the top-left corner and (x_max, y_max) is the bottom-right corner. Normalized to [0, 1000]."
}
},
"required": ["coordinate"]
}
}
}
]
MOBILE_USE_ATOMIC_TOOLS_LIST = [
{
"type": "function",
"function": {
"name": "tap",
"description": "On a mobile device, perform a single tap at the specified coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates normalized to [0, 1000]."
}
},
"required": ["coordinate"]
}
}
},
{
"type": "function",
"function": {
"name": "long_press",
"description": "On a mobile device, perform a long press action at the specified coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates normalized to [0, 1000]."
},
"duration": {
"type": "number",
"description": "Duration of the press in seconds. Default is system standard."
}
},
"required": ["coordinate"]
}
}
},
{
"type": "function",
"function": {
"name": "type",
"description": "On a mobile device, type text content into the currently focused input field.",
"parameters": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The text content to type."
}
},
"required": ["text"]
}
}
},
{
"type": "function",
"function": {
"name": "scroll",
"description": "On a mobile device, scroll the screen in a specified direction from a starting point.",
"parameters": {
"type": "object",
"properties": {
"direction": {
"type": "string",
"enum": ["up", "down", "left", "right"],
"description": "The direction to scroll."
},
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "Starting (x, y) coordinates for the scroll action, normalized to [0, 1000]."
}
},
"required": ["direction", "coordinate"]
}
}
},
{
"type": "function",
"function": {
"name": "swipe",
"description": "On a mobile device, perform a swipe gesture from a start point to an end point.",
"parameters": {
"type": "object",
"properties": {
"start_coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "Starting (x, y) coordinates, normalized to [0, 1000]."
},
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "Ending (x, y) coordinates, normalized to [0, 1000]."
}
},
"required": ["start_coordinate", "coordinate"]
}
}
},
{
"type": "function",
"function": {
"name": "open_app",
"description": "On a mobile device, launch an application by its name.",
"parameters": {
"type": "object",
"properties": {
"app_name": {
"type": "string",
"description": "The exact name of the application to open."
}
},
"required": ["app_name"]
}
}
},
{
"type": "function",
"function": {
"name": "press_home",
"description": "On a mobile device, press the Home button to return to the launcher.",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "press_back",
"description": "On a mobile device, press the Back button.",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "terminate",
"description": "On a mobile device, signal that the task is completed or failed.",
"parameters": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": ["success", "failure"],
"description": "The final status of the task."
},
"reason": {
"type": "string",
"description": "Explanation of the result or reason for failure."
}
},
"required": ["status"]
}
}
}
]
POINT_TOOL_LIST = [
{
"type": "function",
"function": {
"name": "point",
"description": "Locate a specific object on the screen by returning its center coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x, y) coordinates representing the center of the described object, normalized to [0, 1000]."
}
},
"required": ["coordinate"]
}
}
}
]
BBOX_TOOL_LIST = [
{
"type": "function",
"function": {
"name": "bbox",
"description": "Locate a specific object on the screen by returning its bounding box coordinates.",
"parameters": {
"type": "object",
"properties": {
"coordinate": {
"type": "array",
"items": {"type": "integer"},
"description": "(x_min, y_min, x_max, y_max) defining the bounding box, where (x_min, y_min) is the top-left corner and (x_max, y_max) is the bottom-right corner. Normalized to [0, 1000]."
}
},
"required": ["coordinate"]
}
}
}
]