@playcanvas/inspector 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,855 @@
1
+ /**
2
+ * What the tools read the app through, provided by the inspector.
3
+ */
4
+ export type McpHost = object;
5
+ /**
6
+ * The Pause and Step buttons, as the time tools drive them.
7
+ */
8
+ export type McpTimeHost = object;
9
+ /**
10
+ * The Performance tab as the perf tools drive it: its capture, and the switches the panel shows,
11
+ * set through the panel so its controls follow.
12
+ */
13
+ export type McpPerfHost = object;
14
+ /**
15
+ * A recording the perf tools stop after a number of frames.
16
+ */
17
+ export type PerfSession = object;
18
+ /**
19
+ * A tool, described the way WebMCP and MCP describe one.
20
+ */
21
+ export type McpTool = {
22
+ /**
23
+ * - The name the tool is called by.
24
+ */
25
+ name: string;
26
+ /**
27
+ * - What the tool does, for the agent choosing it.
28
+ */
29
+ description: string;
30
+ /**
31
+ * - The JSON schema of its arguments.
32
+ */
33
+ inputSchema: object;
34
+ /**
35
+ * - Hints about its
36
+ * effects: most tools only read; the perf tools change the inspector's capture, never the app.
37
+ */
38
+ annotations: {
39
+ readOnlyHint: boolean;
40
+ destructiveHint?: boolean;
41
+ };
42
+ };
43
+ export type McpToolImpl = McpTool & {
44
+ execute: (host: McpHost, args: any) => any;
45
+ };
46
+ export const TOOLS: ({
47
+ name: string;
48
+ description: string;
49
+ inputSchema: {
50
+ type: string;
51
+ properties: {
52
+ name?: undefined;
53
+ component?: undefined;
54
+ script?: undefined;
55
+ tag?: undefined;
56
+ limit?: undefined;
57
+ kind?: undefined;
58
+ filter?: undefined;
59
+ offset?: undefined;
60
+ id?: undefined;
61
+ depth?: undefined;
62
+ sources?: undefined;
63
+ frames?: undefined;
64
+ gpuTimings?: undefined;
65
+ scriptTiming?: undefined;
66
+ clear?: undefined;
67
+ wait?: undefined;
68
+ timeout?: undefined;
69
+ from?: undefined;
70
+ to?: undefined;
71
+ includeInspector?: undefined;
72
+ frame?: undefined;
73
+ key?: undefined;
74
+ format?: undefined;
75
+ level?: undefined;
76
+ since?: undefined;
77
+ attachment?: undefined;
78
+ channels?: undefined;
79
+ maxSize?: undefined;
80
+ paused?: undefined;
81
+ };
82
+ required?: undefined;
83
+ };
84
+ annotations: {
85
+ readOnlyHint: boolean;
86
+ destructiveHint?: undefined;
87
+ };
88
+ execute: typeof appSummary;
89
+ } | {
90
+ name: string;
91
+ description: string;
92
+ inputSchema: {
93
+ type: string;
94
+ properties: {
95
+ name: {
96
+ type: string;
97
+ description: string;
98
+ };
99
+ component: {
100
+ type: string;
101
+ description: string;
102
+ };
103
+ script: {
104
+ type: string;
105
+ description: string;
106
+ };
107
+ tag: {
108
+ type: string;
109
+ description: string;
110
+ };
111
+ limit: {
112
+ type: string;
113
+ minimum: number;
114
+ maximum: number;
115
+ default: number;
116
+ };
117
+ kind?: undefined;
118
+ filter?: undefined;
119
+ offset?: undefined;
120
+ id?: undefined;
121
+ depth?: undefined;
122
+ sources?: undefined;
123
+ frames?: undefined;
124
+ gpuTimings?: undefined;
125
+ scriptTiming?: undefined;
126
+ clear?: undefined;
127
+ wait?: undefined;
128
+ timeout?: undefined;
129
+ from?: undefined;
130
+ to?: undefined;
131
+ includeInspector?: undefined;
132
+ frame?: undefined;
133
+ key?: undefined;
134
+ format?: undefined;
135
+ level?: undefined;
136
+ since?: undefined;
137
+ attachment?: undefined;
138
+ channels?: undefined;
139
+ maxSize?: undefined;
140
+ paused?: undefined;
141
+ };
142
+ required?: undefined;
143
+ };
144
+ annotations: {
145
+ readOnlyHint: boolean;
146
+ destructiveHint?: undefined;
147
+ };
148
+ execute: typeof findEntities;
149
+ } | {
150
+ name: string;
151
+ description: string;
152
+ inputSchema: {
153
+ type: string;
154
+ properties: {
155
+ kind: {
156
+ type: string;
157
+ enum: string[];
158
+ };
159
+ filter: {
160
+ type: string;
161
+ description: string;
162
+ };
163
+ offset: {
164
+ type: string;
165
+ minimum: number;
166
+ default: number;
167
+ };
168
+ limit: {
169
+ type: string;
170
+ minimum: number;
171
+ maximum: number;
172
+ default: number;
173
+ };
174
+ name?: undefined;
175
+ component?: undefined;
176
+ script?: undefined;
177
+ tag?: undefined;
178
+ id?: undefined;
179
+ depth?: undefined;
180
+ sources?: undefined;
181
+ frames?: undefined;
182
+ gpuTimings?: undefined;
183
+ scriptTiming?: undefined;
184
+ clear?: undefined;
185
+ wait?: undefined;
186
+ timeout?: undefined;
187
+ from?: undefined;
188
+ to?: undefined;
189
+ includeInspector?: undefined;
190
+ frame?: undefined;
191
+ key?: undefined;
192
+ format?: undefined;
193
+ level?: undefined;
194
+ since?: undefined;
195
+ attachment?: undefined;
196
+ channels?: undefined;
197
+ maxSize?: undefined;
198
+ paused?: undefined;
199
+ };
200
+ required: string[];
201
+ };
202
+ annotations: {
203
+ readOnlyHint: boolean;
204
+ destructiveHint?: undefined;
205
+ };
206
+ execute: typeof list;
207
+ } | {
208
+ name: string;
209
+ description: string;
210
+ inputSchema: {
211
+ type: string;
212
+ properties: {
213
+ id: {
214
+ type: string;
215
+ description: string;
216
+ };
217
+ depth: {
218
+ type: string;
219
+ minimum: number;
220
+ maximum: number;
221
+ default: number;
222
+ };
223
+ sources: {
224
+ type: string;
225
+ default: boolean;
226
+ description: string;
227
+ };
228
+ name?: undefined;
229
+ component?: undefined;
230
+ script?: undefined;
231
+ tag?: undefined;
232
+ limit?: undefined;
233
+ kind?: undefined;
234
+ filter?: undefined;
235
+ offset?: undefined;
236
+ frames?: undefined;
237
+ gpuTimings?: undefined;
238
+ scriptTiming?: undefined;
239
+ clear?: undefined;
240
+ wait?: undefined;
241
+ timeout?: undefined;
242
+ from?: undefined;
243
+ to?: undefined;
244
+ includeInspector?: undefined;
245
+ frame?: undefined;
246
+ key?: undefined;
247
+ format?: undefined;
248
+ level?: undefined;
249
+ since?: undefined;
250
+ attachment?: undefined;
251
+ channels?: undefined;
252
+ maxSize?: undefined;
253
+ paused?: undefined;
254
+ };
255
+ required: string[];
256
+ };
257
+ annotations: {
258
+ readOnlyHint: boolean;
259
+ destructiveHint?: undefined;
260
+ };
261
+ execute: typeof get;
262
+ } | {
263
+ name: string;
264
+ description: string;
265
+ inputSchema: {
266
+ type: string;
267
+ properties: {
268
+ frames: {
269
+ type: string;
270
+ minimum: number;
271
+ maximum: number;
272
+ description: string;
273
+ default?: undefined;
274
+ };
275
+ gpuTimings: {
276
+ type: string;
277
+ description: string;
278
+ };
279
+ scriptTiming: {
280
+ type: string;
281
+ description: string;
282
+ };
283
+ clear: {
284
+ type: string;
285
+ description: string;
286
+ };
287
+ wait: {
288
+ type: string;
289
+ default: boolean;
290
+ description: string;
291
+ };
292
+ timeout: {
293
+ type: string;
294
+ minimum: number;
295
+ maximum: number;
296
+ default: number;
297
+ description: string;
298
+ };
299
+ name?: undefined;
300
+ component?: undefined;
301
+ script?: undefined;
302
+ tag?: undefined;
303
+ limit?: undefined;
304
+ kind?: undefined;
305
+ filter?: undefined;
306
+ offset?: undefined;
307
+ id?: undefined;
308
+ depth?: undefined;
309
+ sources?: undefined;
310
+ from?: undefined;
311
+ to?: undefined;
312
+ includeInspector?: undefined;
313
+ frame?: undefined;
314
+ key?: undefined;
315
+ format?: undefined;
316
+ level?: undefined;
317
+ since?: undefined;
318
+ attachment?: undefined;
319
+ channels?: undefined;
320
+ maxSize?: undefined;
321
+ paused?: undefined;
322
+ };
323
+ required?: undefined;
324
+ };
325
+ annotations: {
326
+ readOnlyHint: boolean;
327
+ destructiveHint: boolean;
328
+ };
329
+ execute: typeof perfRecord;
330
+ } | {
331
+ name: string;
332
+ description: string;
333
+ inputSchema: {
334
+ type: string;
335
+ properties: {
336
+ name?: undefined;
337
+ component?: undefined;
338
+ script?: undefined;
339
+ tag?: undefined;
340
+ limit?: undefined;
341
+ kind?: undefined;
342
+ filter?: undefined;
343
+ offset?: undefined;
344
+ id?: undefined;
345
+ depth?: undefined;
346
+ sources?: undefined;
347
+ frames?: undefined;
348
+ gpuTimings?: undefined;
349
+ scriptTiming?: undefined;
350
+ clear?: undefined;
351
+ wait?: undefined;
352
+ timeout?: undefined;
353
+ from?: undefined;
354
+ to?: undefined;
355
+ includeInspector?: undefined;
356
+ frame?: undefined;
357
+ key?: undefined;
358
+ format?: undefined;
359
+ level?: undefined;
360
+ since?: undefined;
361
+ attachment?: undefined;
362
+ channels?: undefined;
363
+ maxSize?: undefined;
364
+ paused?: undefined;
365
+ };
366
+ required?: undefined;
367
+ };
368
+ annotations: {
369
+ readOnlyHint: boolean;
370
+ destructiveHint: boolean;
371
+ };
372
+ execute: typeof perfStop;
373
+ } | {
374
+ name: string;
375
+ description: string;
376
+ inputSchema: {
377
+ type: string;
378
+ properties: {
379
+ from: {
380
+ type: string;
381
+ minimum: number;
382
+ description: string;
383
+ };
384
+ to: {
385
+ type: string;
386
+ minimum: number;
387
+ description: string;
388
+ };
389
+ includeInspector: {
390
+ type: string;
391
+ default: boolean;
392
+ description: string;
393
+ };
394
+ name?: undefined;
395
+ component?: undefined;
396
+ script?: undefined;
397
+ tag?: undefined;
398
+ limit?: undefined;
399
+ kind?: undefined;
400
+ filter?: undefined;
401
+ offset?: undefined;
402
+ id?: undefined;
403
+ depth?: undefined;
404
+ sources?: undefined;
405
+ frames?: undefined;
406
+ gpuTimings?: undefined;
407
+ scriptTiming?: undefined;
408
+ clear?: undefined;
409
+ wait?: undefined;
410
+ timeout?: undefined;
411
+ frame?: undefined;
412
+ key?: undefined;
413
+ format?: undefined;
414
+ level?: undefined;
415
+ since?: undefined;
416
+ attachment?: undefined;
417
+ channels?: undefined;
418
+ maxSize?: undefined;
419
+ paused?: undefined;
420
+ };
421
+ required?: undefined;
422
+ };
423
+ annotations: {
424
+ readOnlyHint: boolean;
425
+ destructiveHint?: undefined;
426
+ };
427
+ execute: typeof perfSummaryTool;
428
+ } | {
429
+ name: string;
430
+ description: string;
431
+ inputSchema: {
432
+ type: string;
433
+ properties: {
434
+ frame: {
435
+ type: string;
436
+ minimum: number;
437
+ description: string;
438
+ };
439
+ name?: undefined;
440
+ component?: undefined;
441
+ script?: undefined;
442
+ tag?: undefined;
443
+ limit?: undefined;
444
+ kind?: undefined;
445
+ filter?: undefined;
446
+ offset?: undefined;
447
+ id?: undefined;
448
+ depth?: undefined;
449
+ sources?: undefined;
450
+ frames?: undefined;
451
+ gpuTimings?: undefined;
452
+ scriptTiming?: undefined;
453
+ clear?: undefined;
454
+ wait?: undefined;
455
+ timeout?: undefined;
456
+ from?: undefined;
457
+ to?: undefined;
458
+ includeInspector?: undefined;
459
+ key?: undefined;
460
+ format?: undefined;
461
+ level?: undefined;
462
+ since?: undefined;
463
+ attachment?: undefined;
464
+ channels?: undefined;
465
+ maxSize?: undefined;
466
+ paused?: undefined;
467
+ };
468
+ required: string[];
469
+ };
470
+ annotations: {
471
+ readOnlyHint: boolean;
472
+ destructiveHint?: undefined;
473
+ };
474
+ execute: typeof perfFrame;
475
+ } | {
476
+ name: string;
477
+ description: string;
478
+ inputSchema: {
479
+ type: string;
480
+ properties: {
481
+ key: {
482
+ type: string;
483
+ enum: string[];
484
+ };
485
+ from: {
486
+ type: string;
487
+ minimum: number;
488
+ description: string;
489
+ };
490
+ to: {
491
+ type: string;
492
+ minimum: number;
493
+ description: string;
494
+ };
495
+ format: {
496
+ type: string;
497
+ enum: string[];
498
+ default: string;
499
+ };
500
+ name?: undefined;
501
+ component?: undefined;
502
+ script?: undefined;
503
+ tag?: undefined;
504
+ limit?: undefined;
505
+ kind?: undefined;
506
+ filter?: undefined;
507
+ offset?: undefined;
508
+ id?: undefined;
509
+ depth?: undefined;
510
+ sources?: undefined;
511
+ frames?: undefined;
512
+ gpuTimings?: undefined;
513
+ scriptTiming?: undefined;
514
+ clear?: undefined;
515
+ wait?: undefined;
516
+ timeout?: undefined;
517
+ includeInspector?: undefined;
518
+ frame?: undefined;
519
+ level?: undefined;
520
+ since?: undefined;
521
+ attachment?: undefined;
522
+ channels?: undefined;
523
+ maxSize?: undefined;
524
+ paused?: undefined;
525
+ };
526
+ required: string[];
527
+ };
528
+ annotations: {
529
+ readOnlyHint: boolean;
530
+ destructiveHint?: undefined;
531
+ };
532
+ execute: typeof perfSeries;
533
+ } | {
534
+ name: string;
535
+ description: string;
536
+ inputSchema: {
537
+ type: string;
538
+ properties: {
539
+ level: {
540
+ type: string;
541
+ enum: string[];
542
+ default: string;
543
+ description: string;
544
+ };
545
+ filter: {
546
+ type: string;
547
+ description: string;
548
+ };
549
+ since: {
550
+ type: string;
551
+ minimum: number;
552
+ description: string;
553
+ };
554
+ limit: {
555
+ type: string;
556
+ minimum: number;
557
+ maximum: number;
558
+ default: number;
559
+ };
560
+ name?: undefined;
561
+ component?: undefined;
562
+ script?: undefined;
563
+ tag?: undefined;
564
+ kind?: undefined;
565
+ offset?: undefined;
566
+ id?: undefined;
567
+ depth?: undefined;
568
+ sources?: undefined;
569
+ frames?: undefined;
570
+ gpuTimings?: undefined;
571
+ scriptTiming?: undefined;
572
+ clear?: undefined;
573
+ wait?: undefined;
574
+ timeout?: undefined;
575
+ from?: undefined;
576
+ to?: undefined;
577
+ includeInspector?: undefined;
578
+ frame?: undefined;
579
+ key?: undefined;
580
+ format?: undefined;
581
+ attachment?: undefined;
582
+ channels?: undefined;
583
+ maxSize?: undefined;
584
+ paused?: undefined;
585
+ };
586
+ required?: undefined;
587
+ };
588
+ annotations: {
589
+ readOnlyHint: boolean;
590
+ destructiveHint?: undefined;
591
+ };
592
+ execute: typeof logs;
593
+ } | {
594
+ name: string;
595
+ description: string;
596
+ inputSchema: {
597
+ type: string;
598
+ properties: {
599
+ id: {
600
+ type: string;
601
+ description: string;
602
+ };
603
+ attachment: {
604
+ type: string;
605
+ enum: string[];
606
+ description: string;
607
+ };
608
+ channels: {
609
+ type: string;
610
+ pattern: string;
611
+ default: string;
612
+ description: string;
613
+ };
614
+ maxSize: {
615
+ type: string;
616
+ minimum: number;
617
+ maximum: number;
618
+ description: string;
619
+ };
620
+ name?: undefined;
621
+ component?: undefined;
622
+ script?: undefined;
623
+ tag?: undefined;
624
+ limit?: undefined;
625
+ kind?: undefined;
626
+ filter?: undefined;
627
+ offset?: undefined;
628
+ depth?: undefined;
629
+ sources?: undefined;
630
+ frames?: undefined;
631
+ gpuTimings?: undefined;
632
+ scriptTiming?: undefined;
633
+ clear?: undefined;
634
+ wait?: undefined;
635
+ timeout?: undefined;
636
+ from?: undefined;
637
+ to?: undefined;
638
+ includeInspector?: undefined;
639
+ frame?: undefined;
640
+ key?: undefined;
641
+ format?: undefined;
642
+ level?: undefined;
643
+ since?: undefined;
644
+ paused?: undefined;
645
+ };
646
+ required?: undefined;
647
+ };
648
+ annotations: {
649
+ readOnlyHint: boolean;
650
+ destructiveHint?: undefined;
651
+ };
652
+ execute: typeof screenshot;
653
+ } | {
654
+ name: string;
655
+ description: string;
656
+ inputSchema: {
657
+ type: string;
658
+ properties: {
659
+ paused: {
660
+ type: string;
661
+ };
662
+ name?: undefined;
663
+ component?: undefined;
664
+ script?: undefined;
665
+ tag?: undefined;
666
+ limit?: undefined;
667
+ kind?: undefined;
668
+ filter?: undefined;
669
+ offset?: undefined;
670
+ id?: undefined;
671
+ depth?: undefined;
672
+ sources?: undefined;
673
+ frames?: undefined;
674
+ gpuTimings?: undefined;
675
+ scriptTiming?: undefined;
676
+ clear?: undefined;
677
+ wait?: undefined;
678
+ timeout?: undefined;
679
+ from?: undefined;
680
+ to?: undefined;
681
+ includeInspector?: undefined;
682
+ frame?: undefined;
683
+ key?: undefined;
684
+ format?: undefined;
685
+ level?: undefined;
686
+ since?: undefined;
687
+ attachment?: undefined;
688
+ channels?: undefined;
689
+ maxSize?: undefined;
690
+ };
691
+ required: string[];
692
+ };
693
+ annotations: {
694
+ readOnlyHint: boolean;
695
+ destructiveHint: boolean;
696
+ };
697
+ execute: typeof pause;
698
+ } | {
699
+ name: string;
700
+ description: string;
701
+ inputSchema: {
702
+ type: string;
703
+ properties: {
704
+ frames: {
705
+ type: string;
706
+ minimum: number;
707
+ maximum: number;
708
+ default: number;
709
+ description?: undefined;
710
+ };
711
+ timeout: {
712
+ type: string;
713
+ minimum: number;
714
+ maximum: number;
715
+ default: number;
716
+ description?: undefined;
717
+ };
718
+ name?: undefined;
719
+ component?: undefined;
720
+ script?: undefined;
721
+ tag?: undefined;
722
+ limit?: undefined;
723
+ kind?: undefined;
724
+ filter?: undefined;
725
+ offset?: undefined;
726
+ id?: undefined;
727
+ depth?: undefined;
728
+ sources?: undefined;
729
+ gpuTimings?: undefined;
730
+ scriptTiming?: undefined;
731
+ clear?: undefined;
732
+ wait?: undefined;
733
+ from?: undefined;
734
+ to?: undefined;
735
+ includeInspector?: undefined;
736
+ frame?: undefined;
737
+ key?: undefined;
738
+ format?: undefined;
739
+ level?: undefined;
740
+ since?: undefined;
741
+ attachment?: undefined;
742
+ channels?: undefined;
743
+ maxSize?: undefined;
744
+ paused?: undefined;
745
+ };
746
+ required?: undefined;
747
+ };
748
+ annotations: {
749
+ readOnlyHint: boolean;
750
+ destructiveHint: boolean;
751
+ };
752
+ execute: typeof step;
753
+ })[];
754
+ /**
755
+ * Ends the recording the tools stop after a number of frames, telling a caller waiting for it why.
756
+ * Stops recording too, unless only letting go of it.
757
+ *
758
+ * @param {McpHost} host - The host.
759
+ * @param {string} reason - Why it ended.
760
+ * @param {boolean} [stop] - Whether to stop recording.
761
+ */
762
+ export function endPerfSession(host: McpHost, reason: string, stop?: boolean): void;
763
+ /**
764
+ * Checks arguments against a tool's input schema: required properties, and the type, range and
765
+ * allowed values of each property given. The browser passes arguments on as they are.
766
+ *
767
+ * @param {McpTool} tool - The tool.
768
+ * @param {any} args - The arguments.
769
+ */
770
+ export function validate(tool: McpTool, args: any): void;
771
+ /**
772
+ * @param {McpHost} host - The host.
773
+ * @returns {object} What the app is, and how it runs.
774
+ */
775
+ declare function appSummary(host: McpHost): object;
776
+ /**
777
+ * @param {McpHost} host - The host.
778
+ * @param {any} args - The search.
779
+ * @returns {object} The entities found.
780
+ */
781
+ declare function findEntities(host: McpHost, args: any): object;
782
+ /**
783
+ * @param {McpHost} host - The host.
784
+ * @param {any} args - Which list, and which part of it.
785
+ * @returns {object} The entries.
786
+ */
787
+ declare function list(host: McpHost, args: any): object;
788
+ /**
789
+ * @param {McpHost} host - The host.
790
+ * @param {any} args - The id, and how far to follow links.
791
+ * @returns {object} The object, as its tab shows it.
792
+ */
793
+ declare function get(host: McpHost, args: any): object;
794
+ /**
795
+ * @param {McpHost} host - The host.
796
+ * @param {any} args - How many frames to record, the options, whether to clear what is kept, and
797
+ * whether to wait.
798
+ * @returns {Promise<object>|object} Once the frames are recorded, how recording ended and the
799
+ * summary of the frames recorded; or, without waiting, the status.
800
+ */
801
+ declare function perfRecord(host: McpHost, args: any): Promise<object> | object;
802
+ /**
803
+ * @param {McpHost} host - The host.
804
+ * @returns {object} The summary of every frame kept, once recording is stopped.
805
+ */
806
+ declare function perfStop(host: McpHost): object;
807
+ /**
808
+ * @param {McpHost} host - The host.
809
+ * @param {any} args - The frames, and whether to count the inspector's time.
810
+ * @returns {object} The summary.
811
+ */
812
+ declare function perfSummaryTool(host: McpHost, args: any): object;
813
+ /**
814
+ * @param {McpHost} host - The host.
815
+ * @param {any} args - The frame number.
816
+ * @returns {object} Everything recorded for the frame.
817
+ */
818
+ declare function perfFrame(host: McpHost, args: any): object;
819
+ /**
820
+ * @param {McpHost} host - The host.
821
+ * @param {any} args - The series, the frames and the format.
822
+ * @returns {object|string} The rows of the series, as JSON or CSV.
823
+ */
824
+ declare function perfSeries(host: McpHost, args: any): object | string;
825
+ /**
826
+ * The tools of the inspector. None of them changes the app: most only read it, and the perf tools
827
+ * drive the inspector's own capture.
828
+ *
829
+ * @type {McpToolImpl[]}
830
+ */
831
+ /**
832
+ * @param {McpHost} host - The host.
833
+ * @param {any} args - Which messages.
834
+ * @returns {object} The messages logged since the tools were turned on, newest last.
835
+ */
836
+ declare function logs(host: McpHost, args: any): object;
837
+ /**
838
+ * @param {McpHost} host - The host.
839
+ * @param {any} args - What to capture.
840
+ * @returns {Promise<object>} The image, under $image, with what it shows.
841
+ */
842
+ declare function screenshot(host: McpHost, args: any): Promise<object>;
843
+ /**
844
+ * @param {McpHost} host - The host.
845
+ * @param {any} args - Whether to pause.
846
+ * @returns {object} Whether the app is paused, and its frame.
847
+ */
848
+ declare function pause(host: McpHost, args: any): object;
849
+ /**
850
+ * @param {McpHost} host - The host.
851
+ * @param {any} args - How many frames.
852
+ * @returns {Promise<object>} How many frames ran, and the frame the app is paused on.
853
+ */
854
+ declare function step(host: McpHost, args: any): Promise<object>;
855
+ export {};