-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtools.json
More file actions
3687 lines (3687 loc) · 151 KB
/
Copy pathtools.json
File metadata and controls
3687 lines (3687 loc) · 151 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"tools": [
{
"name": "AddEntitlement",
"title": "AddEntitlement",
"description": "Add a new entitlement to the project's entitlements file.\n\nMost Apple APIs do NOT require an entitlement. Only use this tool when a\nfeature requires a code-signing entitlement. These are things like access\nto protected hardware, sandboxed data stores shared between apps, paid\ntransaction processing, or privileged inter-process communication.\n\nDo NOT use this tool or add an entitlement for:\n- Adding UI components or using standard frameworks (SwiftUI, UIKit, MapKit, AVFoundation, CoreLocation, etc.)\n- Privacy usage descriptions — those are Info.plist keys, not entitlements. You should use the AddInfoPlist tool.\n- General feature development that doesn't involve a restricted system capability\n\nWhen in doubt, do NOT call this tool or add an entitlement. If you run\ninto debugging issues after adopting a new API — such as failures\nconnecting to system XPC services — you can add the entitlement then.\n\nParameters:\n - targetName: The name of the Xcode target to add the entitlement to. Use another tool to discover the target names if you don't already know them.\n - entitlementKey: The entitlement key you want to add.\n - entitlementValueType: The type of the value — 'bool', 'string', 'int', 'stringArray', or 'dictionary'.\n - entitlementValue: The value as a string (for bool, string, or int types). For bool, pass 'true' or 'false'.\n - entitlementValueItems: Array of strings (only for stringArray type).\n - entitlementDictionaryItems: JSON-encoded dictionary (only for dictionary type).\n\nNote: It is IMPORTANT that you do not edit the entitlement file directly unless told to. ALWAYS call this tool if you need to change the entitlement file.",
"inputSchema": {
"properties": {
"entitlementDictionaryItems": {
"type": "string",
"description": "A JSON-encoded string representing a dictionary. Required when entitlementValueType is 'dictionary'. Example: '{\"key\":\"value\"}'."
},
"entitlementKey": {
"type": "string",
"description": "The entitlement key you want to add."
},
"entitlementValue": {
"type": "string",
"description": "The entitlement value as a string. Required when entitlementValueType is 'bool', 'string', or 'int'. For bool, pass 'true' or 'false'. For int, pass the number as a string. Not used for stringArray or dictionary types."
},
"entitlementValueItems": {
"type": "array",
"description": "Array of string values. Required when entitlementValueType is 'stringArray'.",
"items": {
"type": "string"
}
},
"entitlementValueType": {
"type": "string",
"description": "The type of the entitlement value. Most entitlements are 'bool' (pass entitlementValue 'true'). Some are 'string' (pass the value in entitlementValue). A few are 'stringArray' (pass values in entitlementValueItems instead). Use 'dictionary' for entitlements whose value is a plist dictionary (pass JSON in entitlementDictionaryItems).",
"enum": [
"bool",
"string",
"int",
"stringArray",
"dictionary"
]
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier."
},
"targetName": {
"type": "string",
"description": "The name of the Xcode target to add the entitlement to. Use another tool (e.g. GetTargetBuildSettings) to discover target names if they are not already known."
}
},
"required": [
"tabIdentifier",
"targetName",
"entitlementKey",
"entitlementValueType"
],
"type": "object"
},
"outputSchema": {
"properties": {
"errorDescription": {
"type": "string",
"description": "An optional description of the error when trying to add the entitlement. This string will be available if result is false."
},
"result": {
"type": "boolean",
"description": "A boolean to indicate if adding the entitlement was successful or not."
}
},
"required": [
"result"
],
"type": "object"
}
},
{
"name": "AddInfoPlist",
"title": "AddInfoPlist",
"description": "Add or update an Info.plist key in the project.\n\nUse this tool for app configuration metadata such as:\n- Privacy usage descriptions (e.g. NSCameraUsageDescription, NSLocationWhenInUseUsageDescription)\n- App Transport Security settings\n- Supported interface orientations\n- URL schemes and document types\n- Background modes\n- Bundle display name, version, or other app metadata\n\nThis is NOT for entitlements. If you need a restricted system capability\ngated by code signing (like Push Notifications, App Groups, or iCloud),\nuse the AddEntitlement tool instead.\n\nParameters:\n- targetName: The name of the Xcode target to add the Info.plist key to. Use another tool to discover the target names if you don't already know them.\n- infoPlistKey: The key for the info.plist value you want to add.\n- infoPlistValueType: The type of the value — 'bool', 'string', 'int', 'stringArray', or 'dictionaryArray'.\n- infoPlistValue: The value as a string (for bool, string, or int types). For bool, pass 'true' or 'false'.\n- infoPlistValueItems: Array of strings (only for stringArray type).\n- infoPlistDictionaryItems: JSON-encoded array of dictionaries (only for dictionaryArray type).\n\nIMPORTANT: Do NOT modify the Info.plist file directly. Always use this tool\nto add or edit Info.plist keys, even if the project has GENERATE_INFOPLIST_FILE enabled.",
"inputSchema": {
"properties": {
"infoPlistDictionaryItems": {
"type": "string",
"description": "A JSON-encoded string representing an array of dictionaries. Required when infoPlistValueType is 'dictionaryArray'. Example: '[{\"NSAllowsArbitraryLoads\": true}]'"
},
"infoPlistKey": {
"type": "string",
"description": "The Info.plist key to add or change"
},
"infoPlistValue": {
"type": "string",
"description": "The value as a string. Required when infoPlistValueType is 'bool', 'string', or 'int'. For bool, pass 'true' or 'false'. For int, pass the number as a string. Not used for stringArray or dictionaryArray types."
},
"infoPlistValueItems": {
"type": "array",
"description": "Array of string values. Required when infoPlistValueType is 'stringArray'.",
"items": {
"type": "string"
}
},
"infoPlistValueType": {
"type": "string",
"description": "The type of the Info.plist value. Common types are 'string' (for privacy descriptions, display names) and 'bool' (for boolean flags). Use 'stringArray' for lists and 'dictionaryArray' for complex structures like App Transport Security settings.",
"enum": [
"bool",
"string",
"int",
"stringArray",
"dictionaryArray"
]
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
},
"targetName": {
"type": "string",
"description": "The name of the Xcode target whose Info.plist key should be added or updated. Use another tool (e.g. GetTargetBuildSettings) to discover target names if they are not already known."
}
},
"required": [
"tabIdentifier",
"targetName",
"infoPlistKey",
"infoPlistValueType"
],
"type": "object"
},
"outputSchema": {
"properties": {
"errorDescription": {
"type": "string",
"description": "An optional description of the error when trying to add the info.plist. This string will be available if result is false."
},
"result": {
"type": "boolean",
"description": "Whether or not adding/updating the info.plist was successful."
}
},
"required": [
"result"
],
"type": "object"
}
},
{
"name": "BuildProject",
"title": "Build Project",
"description": "Builds an Xcode project and waits until the build completes.",
"inputSchema": {
"properties": {
"buildForTesting": {
"type": "boolean",
"description": "Whether to also build test targets that would not usually be included in a regular build"
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
}
},
"required": [
"tabIdentifier"
],
"type": "object"
},
"outputSchema": {
"properties": {
"buildResult": {
"type": "string",
"description": "The message indicating the result of the build operation"
},
"elapsedTime": {
"type": "number",
"description": "The time it took to finish the build, in seconds"
},
"errors": {
"type": "array",
"description": "List of build errors",
"items": {
"properties": {
"classification": {
"type": "string",
"description": "The type of error (error, warning, etc.)"
},
"filePath": {
"type": "string",
"description": "The file path where the error occurred"
},
"lineNumber": {
"type": "integer",
"description": "The line number where the error occurred"
},
"message": {
"type": "string",
"description": "The error message"
}
},
"required": [
"classification",
"message"
],
"type": "object"
}
},
"fullLogPath": {
"type": "string",
"description": "Path of the full log in textual format, containing the complete command lines and any output from the build tasks"
}
},
"required": [
"buildResult",
"errors",
"fullLogPath"
],
"type": "object"
}
},
{
"name": "DeviceInteractionEndSession",
"title": "End Device Interaction Session",
"description": "Closes previous device session created in DeviceInteractionStartSession.\n \nCall this action once you have finished interacting with a device.\nKeeping a device interaction session alive is expensive and affects the user-facing UI.\nIt is crucial to close the session when not in use.",
"inputSchema": {
"properties": {
"interactionSessionKey": {
"type": "string",
"description": "Device Interaction session to close. Taken from Start Device Interaction Session"
}
},
"required": [
"interactionSessionKey"
],
"type": "object"
},
"outputSchema": {
"properties": {
"userMessage": {
"type": "string",
"description": "A summary of the action"
}
},
"required": [
"userMessage"
],
"type": "object"
}
},
{
"name": "DeviceInteractionInstallAndRun",
"title": "Prepare for device interaction: install and start application on a device",
"description": "Builds, installs, and starts the current application on the currently targeted device.\n\nCall this action to install the application on the currently targeted device and start it\nso subsequent interaction calls will have the most up to date version.\nInvoke this every time you modify a project, change the target device, or the previous\ndebug session has been disconnected and application logs are missing.",
"inputSchema": {
"properties": {
"commandLineArguments": {
"type": "array",
"description": "Arguments that the application should be run with. Can include '$(inherited)' placeholder string for scheme-provided arguments",
"items": {
"type": "string"
}
},
"environmentVariables": {
"type": "object",
"description": "Environment variables that the application should be run with. Can contain '$(inherited)' as a key to include scheme-provided environment variables"
},
"interactionSessionKey": {
"type": "string",
"description": "Device Interaction session identifier that initiates this call. Taken from Start Device Interaction Session"
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
}
},
"required": [
"tabIdentifier",
"interactionSessionKey"
],
"type": "object"
},
"outputSchema": {
"properties": {
"userMessage": {
"type": "string",
"description": "A summary of the action"
}
},
"required": [
"userMessage"
],
"type": "object"
}
},
{
"name": "DeviceInteractionStartSession",
"title": "Start Device Interaction Session",
"description": "Prepares a runtime for iOS interaction. This should be called as early as possible if device interaction will be needed.\n\nInvoke this tool if you are going to perform runtime verification on a device/simulator.\nThis tool finds and (if necessary) boots a desired device. The action may take time,\nso this should be invoked early in the process to prepare the device in parallel with ongoing feature development.\nKeeping the session open is expensive, so call DeviceInteractionEndSession to close the session once\ninteraction is finished.\n\nDo NOT call this if the application you are working on cannot be built and installed on an iOS device.",
"inputSchema": {
"properties": {
"deviceIdentifier": {
"type": "string",
"description": "The UUID/ECID/name/OS version/type of the device to perform interaction. Accepts any values and tries to match the best candidate."
},
"sessionIdentifier": {
"type": "string",
"description": "Unique human-friendly identifier for this session (e.g. \"Verify Login Flow\"). Used in logs and UI - use Title Case."
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
}
},
"required": [
"tabIdentifier",
"sessionIdentifier"
],
"type": "object"
},
"outputSchema": {
"properties": {
"deviceIsSimulator": {
"type": "boolean",
"description": "true if the device for this session is a simulator, otherwise false"
},
"deviceUUID": {
"type": "string",
"description": "UUID of the device to be used for the interaction session"
},
"interactionSessionKey": {
"type": "string",
"description": "A secret key to identify the interaction session"
},
"skillToTrigger": {
"type": "string",
"description": "The name of the skill that will handle the next step(s)"
},
"summary": {
"type": "string",
"description": "Notes about the session and guidance on next steps for a caller"
}
},
"required": [
"summary",
"skillToTrigger",
"interactionSessionKey",
"deviceUUID",
"deviceIsSimulator"
],
"type": "object"
}
},
{
"name": "DeviceInteractionSynthesize",
"title": "Perform single device interaction and fetch device state",
"description": "Synthesizes device events (tap, swipe, type, etc.) on a physical device or simulator\nand captures the resulting state.\n\nThis action provides a unified interface for device interaction. After executing the\nspecified interaction command, it captures a screenshot and UI hierarchy, returning\npaths to both files.\nUse this to:\n- Tap UI elements at specific coordinates\n- Swipe/scroll through content\n- Type text into fields\n- Press hardware buttons\n- Capture current device state (screenshot + hierarchy)\n- Change device orientation\n\nAlways use positions based on the most recent hierarchy dump. Never try to guess positions from a screenshot only.",
"inputSchema": {
"properties": {
"interactSessionKey": {
"type": "string",
"description": "Device Interaction session key to work with. Taken from Start Device Interaction Session"
},
"interactionCommand": {
"type": "string",
"description": "The interaction command to execute (e.g., 't 100 200' for tap)"
}
},
"required": [
"interactSessionKey"
],
"type": "object"
},
"outputSchema": {
"properties": {
"applicationState": {
"type": "string",
"description": "State of the run application: NotRun, Running, Stopped, Crashed, Disconnected."
},
"hierarchyPath": {
"type": "string",
"description": "Path to the captured UI hierarchy file (incl. device orientation). If missing, retry as that might be AX transient issue"
},
"logsPath": {
"type": "string",
"description": "Path to the file where collected console logs of the application are stored"
},
"screenshotPath": {
"type": "string",
"description": "Path to the captured full-size screenshot"
},
"thumbnailScreenshotPath": {
"type": "string",
"description": "Path to a screenshot file with small resolution"
}
},
"required": [
"thumbnailScreenshotPath",
"screenshotPath",
"hierarchyPath",
"logsPath",
"applicationState"
],
"type": "object"
}
},
{
"name": "DocumentationSearch",
"title": "DocumentationSearch",
"description": "Searches Apple Developer Documentation using semantic matching.",
"inputSchema": {
"properties": {
"frameworks": {
"type": "array",
"description": "Framework(s) to search in. Searches all frameworks if not specified.",
"items": {
"type": "string"
}
},
"query": {
"type": "string",
"description": "The search query"
}
},
"required": [
"query"
],
"type": "object"
},
"outputSchema": {
"properties": {
"documents": {
"type": "array",
"description": "The documents most relevant to the search query",
"items": {
"properties": {
"contents": {
"type": "string",
"description": "The document contents"
},
"kind": {
"type": "string",
"description": "The kind of document"
},
"score": {
"type": "number",
"description": "The matching score of the document"
},
"title": {
"type": "string",
"description": "The document title"
},
"uri": {
"type": "string",
"description": "The document uri"
}
},
"required": [
"title",
"uri",
"contents",
"score",
"kind"
],
"type": "object"
}
}
},
"required": [
"documents"
],
"type": "object"
}
},
{
"name": "GetBuildLog",
"title": "Get Build Log",
"description": "Gets the log of the current or most recently finished build. You can choose which build log entries to include by specifying the severity of any issues emitted by the build task represented by the entry. You can also filter by message regex pattern or file glob pattern. The response also indicates whether the build is currently in progress.",
"inputSchema": {
"properties": {
"glob": {
"type": "string",
"description": "Glob to filter the returned build log entries. Will match against the 'path' field of any emitted issues, as well as against the location of any build task."
},
"pattern": {
"type": "string",
"description": "Regex to filter the returned build log entries. Will match against the 'message' field of any emitted issues, as well as the task description, command line, and console output of any build tasks."
},
"severity": {
"type": "string",
"description": "Limit the output of build log entries to those that emitted issues of the specified severity or higher. Valid values in order of decreasing severity are 'error', 'warning', 'remark'. Defaults to 'error'.",
"enum": [
"remark",
"warning",
"error"
]
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
}
},
"required": [
"tabIdentifier"
],
"type": "object"
},
"outputSchema": {
"properties": {
"buildIsRunning": {
"type": "boolean",
"description": "Indicates whether the build is still running."
},
"buildLogEntries": {
"type": "array",
"description": "The build log entries describing build commands that emitted issues",
"items": {
"properties": {
"buildTask": {
"type": "string",
"description": "The build task represented by the log entry"
},
"emittedIssues": {
"type": "array",
"description": "Any issues emitted by the build task represented by the log entry",
"items": {
"properties": {
"line": {
"type": "integer",
"description": "The line number where the issue was detected, if known"
},
"message": {
"type": "string",
"description": "The message describing the issue"
},
"path": {
"type": "string",
"description": "The file path where the issue was detected, if any"
},
"severity": {
"type": "string",
"description": "The severity of issue (error, warning, remark)"
}
},
"required": [
"line",
"severity",
"message"
],
"type": "object"
}
}
},
"required": [
"emittedIssues"
],
"type": "object"
}
},
"buildResult": {
"type": "string",
"description": "The message indicating the result of the build operation"
},
"fullLogPath": {
"type": "string",
"description": "Path of the full log in textual format, containing the complete command lines and any output from the build tasks"
},
"message": {
"type": "string",
"description": "Optional message with additional information about the search results"
},
"totalFound": {
"type": "integer",
"description": "Total number of build log entries before truncation"
},
"truncated": {
"type": "boolean",
"description": "Whether results were truncated due to exceeding 100 issues"
}
},
"required": [
"buildResult",
"buildLogEntries",
"buildIsRunning",
"truncated",
"totalFound",
"fullLogPath"
],
"type": "object"
}
},
{
"name": "GetConsoleOutput",
"title": "GetConsoleOutput",
"description": "Retrieves console output (stdout, stderr, OSLog) from a running or completed app launch session. Supports regex filtering, severity filtering, and context extraction. Use this to analyze app logs, debug issues, find errors, or understand app behavior.",
"inputSchema": {
"properties": {
"contextLines": {
"type": "integer",
"description": "Number of context lines to include around pattern matches (like grep -C). Use this with 'pattern' to see surrounding context. Default: 0"
},
"includeMetadata": {
"type": "boolean",
"description": "Include detailed OSLog metadata (subsystem, category, pid, tid, sender info). Only applies to OSLog items. Default: false"
},
"launchSessionReference": {
"type": "string",
"description": "Optional launch session reference. Omit to use the current/most recent launch session."
},
"oslogSeverity": {
"type": "array",
"description": "Filter OSLog by severity levels. Array of: 'error', 'fault', 'info', 'debug', 'default'. Only filters OSLog items, not stdout/stderr. Omit to include all severities.",
"items": {
"type": "string"
}
},
"outputType": {
"type": "string",
"description": "Type of output to retrieve: 'stdio' (stdout/stderr only), 'oslog' (OSLog only), or 'all' (both). Default: 'all'",
"enum": [
"stdio",
"oslog",
"all"
]
},
"pattern": {
"type": "string",
"description": "Optional regex pattern to filter console output. Uses full regex syntax (e.g., 'error.*failed', 'Exception.*\\n.*at line'). Filters both stdout/stderr text and OSLog message content."
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
},
"tailLimit": {
"type": "integer",
"description": "Maximum number of lines to return from the END of output (tail behavior). Returns the last N lines. Default: 500."
}
},
"required": [
"tabIdentifier"
],
"type": "object"
},
"outputSchema": {
"properties": {
"launchSessionInfo": {
"type": "string",
"description": "Information about the launch session: app name, reference, PID, and state (running/expired/etc). Useful for verifying which session was queried."
},
"totalCount": {
"type": "integer",
"description": "Total line count before limits applied. Use this to understand how much output was available."
},
"truncated": {
"type": "boolean",
"description": "True if results were truncated due to tailLimit."
},
"units": {
"type": "array",
"description": "Array of console output units. Each unit is a message/log entry with content, timestamp, kind (stdio/oslog), and optional severity.",
"items": {
"properties": {
"content": {
"type": "string",
"description": "The console output text. For stdio: raw stdout/stderr text. For OSLog: the log message (without metadata unless includeMetadata=true, then this is the parsed message)."
},
"kind": {
"type": "string",
"description": "The type of console output: 'stdio' for stdout/stderr, 'oslog' for OSLog system logs"
},
"metadata": {
"properties": {
"category": {
"type": "string",
"description": "OSLog category within the subsystem (e.g., 'networking', 'database'). Used for finer-grained filtering."
},
"format": {
"type": "string",
"description": "OSLog format string with placeholders (e.g., 'Request failed: %{public}@')"
},
"library": {
"type": "string",
"description": "Library/framework that logged this message"
},
"messageType": {
"type": "string",
"description": "OSLog severity: 'default', 'info', 'debug', 'error', or 'fault'"
},
"pid": {
"type": "integer",
"description": "Process ID that generated this log"
},
"processName": {
"type": "string",
"description": "Name of the process that generated this log"
},
"senderFunctionName": {
"type": "string",
"description": "Function/method name that called the logging API (e.g., '-[UIViewController viewDidLoad]'). Useful for code location."
},
"senderImagePath": {
"type": "string",
"description": "Path to the executable/library that sent this log (e.g., '/System/Library/Frameworks/UIKit.framework/UIKit')"
},
"senderImageUUID": {
"type": "string",
"description": "UUID of the sender's binary image. Used for symbolication and crash analysis."
},
"senderSourceLine": {
"type": "integer",
"description": "Line number in source file where log was called (if available)"
},
"senderSourcePath": {
"type": "string",
"description": "Source file path where log was called (if available)"
},
"sessionUUID": {
"type": "string",
"description": "Unique identifier for the logging session"
},
"subsystem": {
"type": "string",
"description": "OSLog subsystem identifier (e.g., 'com.apple.UIKit'). Used for grouping related logs."
},
"tid": {
"type": "integer",
"description": "Thread ID that generated this log. Useful for identifying multi-threading issues."
},
"timestamp": {
"type": "string",
"description": "Formatted timestamp string from OSLog"
}
},
"required": [
"pid",
"tid"
],
"type": "object",
"description": "Detailed OSLog metadata when includeMetadata=true. Includes: subsystem, category, pid, tid, process name, sender function/file/line, and more. Only present for kind='oslog' and when requested."
},
"severity": {
"type": "string",
"description": "OSLog severity level: 'error', 'fault', 'info', 'debug', or 'default'. Only present for kind='oslog'. Errors and faults indicate problems."
},
"timestamp": {
"type": "number",
"description": "Unix timestamp (seconds since epoch) of when this message appeared. Use this for chronological ordering and time-based analysis."
}
},
"required": [
"content",
"kind",
"timestamp"
],
"type": "object"
}
}
},
"required": [
"units",
"totalCount",
"truncated",
"launchSessionInfo"
],
"type": "object"
}
},
{
"name": "GetCrashIssueLogs",
"title": "Get Crash Issue Logs",
"description": " Get detailed crash logs, expert triage knowledge, and actionable recommendations for a specific crash signature.\n Use this after GetTopCrashIssues to drill down into specific crash issues.\n Returns raw crash log text along with domain-specific analysis guidance from expert triage documents.\n If no `bundle_id` is provided, automatically resolves from the active scheme's target. `bundle_id` is case sensitive and capitalization matters.\n If no `platform` is provided, automatically resolves from the app's supported platforms and the active run destination. Supported platform values: 'iOS', 'macOS', 'watchOS', 'tvOS', 'visionOS'.\n Use `is_beta` to specify TestFlight (true) or App Store (false) data. If not provided, fetches data from both release channels.",
"inputSchema": {
"properties": {
"app_version": {
"type": "string",
"description": "The app version to filter crash logs by (e.g., 4.6). If not provided, returns logs across all versions."
},
"bundle_id": {
"type": "string",
"description": "The bundle identifier of the app (e.g., com.apple.Playgrounds). If not provided, automatically resolved from the active scheme's target."
},
"is_beta": {
"type": "boolean",
"description": "Whether to fetch TestFlight (true) or App Store (false) data. If not provided, fetches data from both release channels."
},
"platform": {
"type": "string",
"description": "The platform to query (e.g., 'iOS', 'macOS', 'watchOS', 'tvOS', 'visionOS'). If not provided, automatically resolved from the active run destination."
},
"signature_name": {
"type": "string",
"description": "The human-readable crash signature name from GetTopCrashIssues"
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
}
},
"required": [
"tabIdentifier",
"signature_name"
],
"type": "object"
},
"outputSchema": {
"properties": {
"appVersion": {
"type": "string",
"description": "The app version that was queried (nil if all versions)"
},
"bundleId": {
"type": "string",
"description": "The bundle ID that was queried"
},
"data": {
"type": "string",
"description": "The crash logs and expert triage knowledge"
},
"message": {
"type": "string",
"description": "Status message about the operation"
},
"signatureName": {
"type": "string",
"description": "The crash signature name that was queried"
},
"success": {
"type": "boolean",
"description": "Whether the API request succeeded"
}
},
"required": [
"success",
"data",
"message",
"bundleId",
"signatureName"
],
"type": "object"
}
},
{
"name": "GetFieldPerformanceIssueLogs",
"title": "Get Field Performance Issue Logs",
"description": "Get detailed logs, performance data, expert triage knowledge, and actionable recommendations for specific field performance issue.\nUse this after GetTopFieldPerformanceIssues to drill down into specific performance issues.\nThis tool provides detailed performance diagnostics including stack traces, timeline data, and domain-specific analysis guidance from expert triage documents.\nSupported diagnostic types: `launches` (app launch performance), `hangs` (app hang issues), `diskwrites` (disk write performance), `energy` (CPU/energy usage).\nIf no `bundle_id` is provided, automatically resolves from the active scheme's target. `bundle_id` is case sensitive and capitalization matters.\nIf no `platform` is provided, automatically resolves from the app's supported platforms and the active run destination. Supported platform values depend on the diagnostic type (e.g., 'iOS', 'macOS', 'watchOS', 'tvOS', 'visionOS').\nSome diagnostic types (e.g., energy) support both App Store and TestFlight data. Use `is_beta` to specify which release channel to query. If not provided, auto-detected from the app version.",
"inputSchema": {
"properties": {
"app_version": {
"type": "string",
"description": "The app version (e.g., 13.14.0)"
},
"bundle_id": {
"type": "string",
"description": "The bundle identifier of the app (e.g., com.toyopagroup.picaboo). If not provided, automatically resolved from the active scheme's target."
},
"diagnostic_type": {
"type": "string",
"description": "The type of performance diagnostic to retrieve. Supported values: 'launches', 'hangs', 'diskwrites', 'energy'"
},
"is_beta": {
"type": "boolean",
"description": "Whether to fetch TestFlight (true) or App Store (false) data. If not provided, auto-detected from the app version."
},
"platform": {
"type": "string",
"description": "The platform to query (e.g., 'iOS', 'macOS', 'watchOS', 'tvOS', 'visionOS'). Supported values depend on the diagnostic type. If not provided, automatically resolved from the active run destination."
},
"signature_name": {
"type": "string",
"description": "The human-readable signature name from GetTopFieldPerformanceIssues"
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier"
}
},
"required": [
"tabIdentifier",
"app_version",
"signature_name",
"diagnostic_type"
],
"type": "object"
},
"outputSchema": {
"properties": {
"appVersion": {
"type": "string",
"description": "The app version that was queried"
},
"bundleId": {
"type": "string",
"description": "The bundle ID that was queried"
},
"data": {
"type": "string",
"description": "The formatted JSON response from the field report API"
},
"diagnosticType": {
"type": "string",
"description": "The diagnostic type that was queried"
},
"message": {
"type": "string",
"description": "Status message about the operation"
},
"signatureName": {
"type": "string",
"description": "The signature name that was queried"
},
"success": {
"type": "boolean",
"description": "Whether the API request succeeded"
}
},
"required": [
"success",
"data",
"message",
"bundleId",
"appVersion",
"signatureName",
"diagnosticType"
],
"type": "object"
}
},
{
"name": "GetFileCompilerFlags",
"title": "GetFileCompilerFlags",
"description": "Gets the additional per-file compiler flags for a single source file in a specific Xcode target — the same value shown in the Compiler Flags column of Target > Build Phases > Compile Sources. Returns an empty string when the file is a member of the target with no flags set. Use UpdateFileCompilerFlags to modify flags.\n\nNote: Per-file compiler flags are uncommon — most targets configure compilation through target build settings instead. Use this tool to inspect existing per-file flags (e.g. when checking why one file in a target compiles differently from its peers, such as adopting `-fbounds-safety` for a single file).\n\nNote about Swift: Values shown for `.swift` files may not actually affect builds because the unit of compilation for Swift is a module. Prefer OTHER_SWIFT_FLAGS at the target level.",
"inputSchema": {
"properties": {
"filePath": {
"type": "string",
"description": "The path to the source file within the Xcode project organization (e.g., 'ProjectName/Sources/MyFile.swift'). An absolute or workspace-relative filesystem path is also accepted as a fallback."
},
"projectPath": {
"type": "string",
"description": "The project-organization path of the .xcodeproj that owns the target (e.g., 'MyApp/MyApp.xcodeproj'). Only needed when the same target name exists in multiple projects in the workspace; omit otherwise. An absolute or workspace-relative filesystem path is also accepted as a fallback."
},
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier."
},
"targetName": {
"type": "string",
"description": "The name of the Xcode target whose build phase contains the source file."
}
},
"required": [
"tabIdentifier",
"targetName",
"filePath"
],
"type": "object"
},
"outputSchema": {
"properties": {
"compilerFlags": {
"type": "string",
"description": "The additional compiler flags on the file, as a single space-separated string. Empty when the file is a member of the target with no per-file flags set."
},
"filePath": {
"type": "string",
"description": "The project-organization path of the file."
},
"guidance": {
"type": "string",
"description": "Populated when a filesystem path was supplied and resolved to a project-organization path. Contains instructions for the agent to prefer the resolved path in subsequent calls."
},
"targetName": {
"type": "string",
"description": "The target whose per-file compiler flags were returned."
},
"warning": {
"type": "string",
"description": "Populated when the build system is unlikely to honor per-file flags on this file (e.g. Swift sources, where the unit of compilation is a module). The flags returned are still the values stored in the project, but the agent should not assume they influence the build; consider a target-level setting instead."
}
},
"required": [
"targetName",
"filePath",
"compilerFlags"
],
"type": "object"
}
},
{
"name": "GetTargetBuildSettings",
"title": "GetTargetBuildSettings",
"description": "Get all the Xcode build setting for a specified Xcode project target.\nAlways use this tool to get the build settings for a target.\nOnly show the target value for each build setting if the user explicitly requests.\n\nIMPORTANT: Do NOT try to parse the project.pbxproj file directly.\"",
"inputSchema": {
"properties": {
"tabIdentifier": {
"type": "string",
"description": "The workspace tab identifier."
},
"targetName": {
"type": "string",
"description": "The name of a given Xcode project target."
}
},
"required": [
"tabIdentifier",
"targetName"
],