2024-01-03 04:43:37 +00:00
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"name": "open_browser",
|
|
|
|
|
"description": "open a browser",
|
|
|
|
|
"parameters": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"url": {
|
|
|
|
|
"type": "string",
|
2024-01-23 23:14:57 +00:00
|
|
|
"description": "website url starts with https://"
|
2024-01-03 04:43:37 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-01-03 21:10:53 +00:00
|
|
|
"required": ["url"]
|
2024-01-03 04:43:37 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-01-06 22:24:22 +00:00
|
|
|
"name": "click_button",
|
|
|
|
|
"description": "Click a button in a web page.",
|
2024-01-03 04:43:37 +00:00
|
|
|
"parameters": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"element_name": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "the html element name."
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["element_name"]
|
|
|
|
|
}
|
2024-01-03 19:40:41 +00:00
|
|
|
},
|
2024-01-06 22:24:22 +00:00
|
|
|
{
|
|
|
|
|
"name": "extract_data_from_page",
|
|
|
|
|
"description": "Extract data from current web page.",
|
|
|
|
|
"parameters": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"question": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "the information user wants to know"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["question"]
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-03 19:40:41 +00:00
|
|
|
{
|
|
|
|
|
"name": "input_user_text",
|
2024-01-06 22:24:22 +00:00
|
|
|
"description": "Input non-sensitive text in current web page.",
|
2024-01-03 19:40:41 +00:00
|
|
|
"parameters": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"element_name": {
|
|
|
|
|
"type": "string",
|
2024-01-06 22:24:22 +00:00
|
|
|
"description": "the html input box element name."
|
2024-01-03 19:40:41 +00:00
|
|
|
},
|
|
|
|
|
"input_text": {
|
|
|
|
|
"type": "string",
|
2024-01-06 22:24:22 +00:00
|
|
|
"description": "non-sensitive text user provided."
|
2024-01-03 19:40:41 +00:00
|
|
|
}
|
|
|
|
|
},
|
2024-01-03 21:10:53 +00:00
|
|
|
"required": ["element_name", "input_text"]
|
2024-01-03 19:40:41 +00:00
|
|
|
}
|
2024-01-06 22:24:22 +00:00
|
|
|
},
|
2024-01-11 14:03:25 +00:00
|
|
|
{
|
|
|
|
|
"name": "change_list_value",
|
|
|
|
|
"description": "Update value from dropdown list or radio button",
|
|
|
|
|
"parameters": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"element_name": {
|
|
|
|
|
"type": "string",
|
2024-01-23 23:14:57 +00:00
|
|
|
"description": "the html selection element name."
|
2024-01-11 14:03:25 +00:00
|
|
|
},
|
|
|
|
|
"update_value": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "the value in the list."
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["element_name", "update_value"]
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-06 22:24:22 +00:00
|
|
|
{
|
|
|
|
|
"name": "input_user_password",
|
|
|
|
|
"description": "Input password in current web page",
|
|
|
|
|
"parameters": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"password": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "user password"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["password"]
|
|
|
|
|
}
|
2024-01-03 04:43:37 +00:00
|
|
|
}
|
|
|
|
|
]
|