Repository navigation
Expand file tree
/
Copy pathschema.json
More file actions
55 lines (55 loc) · 1.59 KB
/
Copy pathschema.json
File metadata and controls
55 lines (55 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/branpurn/waydroid-computer-use/control/schema.json",
"title": "WaydroidComputerUseAction",
"description": "Action envelope for Waydroid computer-use control plane",
"oneOf": [
{
"type": "object",
"required": ["op"],
"properties": { "op": { "const": "screenshot" } },
"additionalProperties": false
},
{
"type": "object",
"required": ["op", "x", "y"],
"properties": {
"op": { "const": "tap" },
"x": { "type": "integer", "minimum": 0 },
"y": { "type": "integer", "minimum": 0 }
},
"additionalProperties": false
},
{
"type": "object",
"required": ["op", "x1", "y1", "x2", "y2"],
"properties": {
"op": { "const": "swipe" },
"x1": { "type": "integer", "minimum": 0 },
"y1": { "type": "integer", "minimum": 0 },
"x2": { "type": "integer", "minimum": 0 },
"y2": { "type": "integer", "minimum": 0 },
"duration_ms": { "type": "integer", "minimum": 0, "default": 300 }
},
"additionalProperties": false
},
{
"type": "object",
"required": ["op", "text"],
"properties": {
"op": { "const": "type" },
"text": { "type": "string", "minLength": 1 }
},
"additionalProperties": false
},
{
"type": "object",
"required": ["op", "code"],
"properties": {
"op": { "const": "keyevent" },
"code": { "type": "integer", "minimum": 0 }
},
"additionalProperties": false
}
]
}