|
9 | 9 | } |
10 | 10 | ], |
11 | 11 | "$defs": { |
12 | | - "frame": { |
13 | | - "type": "object", |
14 | | - "additionalProperties": false, |
15 | | - "properties": { |
16 | | - "x": { "type": "number" }, |
17 | | - "y": { "type": "number" }, |
18 | | - "width": { "type": "number" }, |
19 | | - "height": { "type": "number" } |
20 | | - }, |
21 | | - "required": ["x", "y", "width", "height"] |
22 | | - }, |
23 | 12 | "uiHierarchyNode": { |
24 | 13 | "type": "object" |
25 | 14 | }, |
|
35 | 24 | }, |
36 | 25 | "required": ["type", "uiHierarchy"] |
37 | 26 | }, |
38 | | - "runtimeActionName": { |
39 | | - "enum": ["tap", "typeText", "longPress", "touch", "swipeWithin"] |
40 | | - }, |
41 | | - "runtimeElementRole": { |
42 | | - "enum": [ |
43 | | - "application", |
44 | | - "button", |
45 | | - "cell", |
46 | | - "image", |
47 | | - "keyboard-key", |
48 | | - "list", |
49 | | - "menu", |
50 | | - "other", |
51 | | - "scroll-view", |
52 | | - "slider", |
53 | | - "switch", |
54 | | - "tab", |
55 | | - "text", |
56 | | - "text-field", |
57 | | - "window" |
58 | | - ] |
59 | | - }, |
60 | | - "runtimeElementState": { |
61 | | - "type": "object", |
62 | | - "additionalProperties": false, |
63 | | - "properties": { |
64 | | - "enabled": { "type": "boolean" }, |
65 | | - "focused": { "type": "boolean" }, |
66 | | - "selected": { "type": "boolean" }, |
67 | | - "visible": { "type": "boolean" } |
68 | | - } |
69 | | - }, |
70 | | - "runtimeElement": { |
71 | | - "type": "object", |
72 | | - "additionalProperties": false, |
73 | | - "properties": { |
74 | | - "ref": { "type": "string", "pattern": "^e[1-9][0-9]*$" }, |
75 | | - "role": { "$ref": "#/$defs/runtimeElementRole" }, |
76 | | - "label": { "type": "string" }, |
77 | | - "value": { "type": "string" }, |
78 | | - "identifier": { "type": "string" }, |
79 | | - "frame": { "$ref": "#/$defs/frame" }, |
80 | | - "state": { "$ref": "#/$defs/runtimeElementState" }, |
81 | | - "actions": { |
82 | | - "type": "array", |
83 | | - "items": { "$ref": "#/$defs/runtimeActionName" } |
84 | | - } |
85 | | - }, |
86 | | - "required": ["ref", "frame", "actions"] |
87 | | - }, |
88 | 27 | "runtimeActionHint": { |
89 | 28 | "type": "object", |
90 | 29 | "additionalProperties": false, |
91 | 30 | "properties": { |
92 | | - "action": { "$ref": "#/$defs/runtimeActionName" }, |
| 31 | + "action": { "$ref": "https://xcodebuildmcp.com/schemas/structured-output/_defs/common.schema.json#/$defs/runtimeActionName" }, |
93 | 32 | "elementRef": { "type": "string", "pattern": "^e[1-9][0-9]*$" }, |
94 | 33 | "label": { "type": "string" } |
95 | 34 | }, |
|
108 | 47 | "expiresAtMs": { "type": "integer", "minimum": 0 }, |
109 | 48 | "elements": { |
110 | 49 | "type": "array", |
111 | | - "items": { "$ref": "#/$defs/runtimeElement" } |
| 50 | + "items": { "$ref": "https://xcodebuildmcp.com/schemas/structured-output/_defs/common.schema.json#/$defs/runtimeElement" } |
112 | 51 | }, |
113 | 52 | "actions": { |
114 | 53 | "type": "array", |
|
127 | 66 | "actions" |
128 | 67 | ] |
129 | 68 | }, |
130 | | - "compactRuntimeSnapshot": { |
131 | | - "type": "object", |
132 | | - "additionalProperties": false, |
133 | | - "properties": { |
134 | | - "type": { "const": "runtime-snapshot" }, |
135 | | - "rs": { "const": "1" }, |
136 | | - "screenHash": { "type": "string", "minLength": 1 }, |
137 | | - "seq": { "type": "integer", "minimum": 0 }, |
138 | | - "count": { "type": "integer", "minimum": 0 }, |
139 | | - "targets": { |
140 | | - "type": "array", |
141 | | - "items": { "type": "string" } |
142 | | - }, |
143 | | - "scroll": { |
144 | | - "type": "array", |
145 | | - "items": { "type": "string" } |
146 | | - }, |
147 | | - "text": { |
148 | | - "type": "array", |
149 | | - "items": { "type": "string" } |
150 | | - }, |
151 | | - "udid": { "type": "string" } |
152 | | - }, |
153 | | - "required": ["type", "rs", "screenHash", "seq", "count", "targets", "scroll", "udid"] |
154 | | - }, |
155 | 69 | "runtimeSnapshotUnchanged": { |
156 | 70 | "type": "object", |
157 | 71 | "additionalProperties": false, |
|
200 | 114 | "matches": { |
201 | 115 | "type": "array", |
202 | 116 | "items": { |
203 | | - "oneOf": [{ "$ref": "#/$defs/runtimeElement" }, { "type": "string" }] |
| 117 | + "oneOf": [{ "$ref": "https://xcodebuildmcp.com/schemas/structured-output/_defs/common.schema.json#/$defs/runtimeElement" }, { "type": "string" }] |
204 | 118 | } |
205 | 119 | } |
206 | 120 | }, |
207 | 121 | "required": ["predicate", "matches"] |
208 | | - }, |
209 | | - "recoverableUiError": { |
210 | | - "type": "object", |
211 | | - "additionalProperties": false, |
212 | | - "properties": { |
213 | | - "code": { |
214 | | - "enum": [ |
215 | | - "SNAPSHOT_MISSING", |
216 | | - "SNAPSHOT_EXPIRED", |
217 | | - "SNAPSHOT_PARSE_FAILED", |
218 | | - "ELEMENT_REF_NOT_FOUND", |
219 | | - "TARGET_NOT_FOUND", |
220 | | - "TARGET_AMBIGUOUS", |
221 | | - "TARGET_NOT_ACTIONABLE", |
222 | | - "WAIT_TIMEOUT", |
223 | | - "UI_STATE_CHANGED", |
224 | | - "ACTION_FAILED" |
225 | | - ] |
226 | | - }, |
227 | | - "message": { "type": "string" }, |
228 | | - "recoveryHint": { "type": "string" }, |
229 | | - "elementRef": { "type": "string" }, |
230 | | - "candidates": { |
231 | | - "type": "array", |
232 | | - "items": { |
233 | | - "oneOf": [{ "$ref": "#/$defs/runtimeElement" }, { "type": "string" }] |
234 | | - } |
235 | | - }, |
236 | | - "snapshotAgeMs": { "type": "integer", "minimum": 0 }, |
237 | | - "timeoutMs": { "type": "integer", "minimum": 0 } |
238 | | - }, |
239 | | - "required": ["code", "message", "recoveryHint"] |
240 | 122 | } |
241 | 123 | }, |
242 | 124 | "properties": { |
|
274 | 156 | }, |
275 | 157 | { "$ref": "#/$defs/uiHierarchyCapture" }, |
276 | 158 | { "$ref": "#/$defs/runtimeSnapshot" }, |
277 | | - { "$ref": "#/$defs/compactRuntimeSnapshot" }, |
| 159 | + { "$ref": "https://xcodebuildmcp.com/schemas/structured-output/_defs/common.schema.json#/$defs/compactRuntimeSnapshot" }, |
278 | 160 | { "$ref": "#/$defs/videoRecordingCapture" }, |
279 | 161 | { "$ref": "#/$defs/runtimeSnapshotUnchanged" }, |
280 | 162 | { "$ref": "#/$defs/compactRuntimeSnapshotUnchanged" } |
|
283 | 165 | "diagnostics": { |
284 | 166 | "$ref": "https://xcodebuildmcp.com/schemas/structured-output/_defs/common.schema.json#/$defs/basicDiagnostics" |
285 | 167 | }, |
286 | | - "uiError": { "$ref": "#/$defs/recoverableUiError" }, |
| 168 | + "uiError": { "$ref": "https://xcodebuildmcp.com/schemas/structured-output/_defs/common.schema.json#/$defs/recoverableUiError" }, |
287 | 169 | "waitMatch": { "$ref": "#/$defs/waitMatch" } |
288 | 170 | }, |
289 | 171 | "required": ["summary", "artifacts"] |
|
0 commit comments