Add screenshot functionality and new commands for wait and reprompt

This commit is contained in:
2025-05-19 09:15:08 +02:00
parent 66330bfc73
commit f7feb12946
4 changed files with 75 additions and 8 deletions

View File

@@ -58,6 +58,40 @@ FUNCTIONS = [
"required": ["text", "press_enter"],
}
}
},
{
"type": "function",
"function": {
"name": "wait",
"description": "Wait for a specified amount of time.",
"parameters": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "The duration to wait in seconds."
}
},
"required": ["duration"],
}
}
},
{
"type": "function",
"function": {
"name": "reprompt",
"description": "After executing what you asked for, re-perform a screenshot to determine the next steps. Best combined with a wait.",
"parameters": {
"type": "object",
"properties": {
"nextsteps": {
"type": "string",
"description": "The next steps to take after the screenshot."
}
},
"required": ["nextsteps"],
}
}
}
]