@roll-agent/browser-use-agent 0.25.2 → 0.26.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,670 @@
1
+ import type { AgentContext } from "@roll-agent/sdk";
2
+ import { compileBrowserScript } from "@roll-agent/browser";
3
+ import type { BrowserExecuteInput, BrowserExecuteResult } from "@roll-agent/browser";
4
+ import { z } from "zod";
5
+ import { WorkflowStore } from "../workflows/store.ts";
6
+ export declare const BrowserWorkflowListInputSchema: z.ZodObject<{
7
+ url: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ url: string;
10
+ }, {
11
+ url: string;
12
+ }>;
13
+ export declare const BrowserWorkflowSaveDraftInputSchema: z.ZodObject<{
14
+ draft: z.ZodEffects<z.ZodObject<{
15
+ id: z.ZodString;
16
+ name: z.ZodString;
17
+ description: z.ZodString;
18
+ appliesTo: z.ZodObject<{
19
+ origins: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
20
+ pathPrefix: z.ZodOptional<z.ZodString>;
21
+ }, "strict", z.ZodTypeAny, {
22
+ origins: string[];
23
+ pathPrefix?: string | undefined;
24
+ }, {
25
+ origins: string[];
26
+ pathPrefix?: string | undefined;
27
+ }>;
28
+ source: z.ZodString;
29
+ parameterSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
30
+ capabilities: z.ZodArray<z.ZodEnum<["read", "interact", "navigate", "capture"]>, "many">;
31
+ allowedOrigins: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
32
+ preconditions: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
33
+ postconditions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
34
+ notes: z.ZodDefault<z.ZodString>;
35
+ locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ id: string;
38
+ source: string;
39
+ name: string;
40
+ description: string;
41
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
42
+ allowedOrigins: string[];
43
+ preconditions: Record<string, unknown>[];
44
+ postconditions: Record<string, unknown>[];
45
+ appliesTo: {
46
+ origins: string[];
47
+ pathPrefix?: string | undefined;
48
+ };
49
+ parameterSchema: Record<string, unknown>;
50
+ notes: string;
51
+ locatorExplanations: string[];
52
+ }, {
53
+ id: string;
54
+ source: string;
55
+ name: string;
56
+ description: string;
57
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
58
+ allowedOrigins: string[];
59
+ postconditions: Record<string, unknown>[];
60
+ appliesTo: {
61
+ origins: string[];
62
+ pathPrefix?: string | undefined;
63
+ };
64
+ parameterSchema: Record<string, unknown>;
65
+ preconditions?: Record<string, unknown>[] | undefined;
66
+ notes?: string | undefined;
67
+ locatorExplanations?: string[] | undefined;
68
+ }>, {
69
+ id: string;
70
+ source: string;
71
+ name: string;
72
+ description: string;
73
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
74
+ allowedOrigins: string[];
75
+ preconditions: Record<string, unknown>[];
76
+ postconditions: Record<string, unknown>[];
77
+ appliesTo: {
78
+ origins: string[];
79
+ pathPrefix?: string | undefined;
80
+ };
81
+ parameterSchema: Record<string, unknown>;
82
+ notes: string;
83
+ locatorExplanations: string[];
84
+ }, {
85
+ id: string;
86
+ source: string;
87
+ name: string;
88
+ description: string;
89
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
90
+ allowedOrigins: string[];
91
+ postconditions: Record<string, unknown>[];
92
+ appliesTo: {
93
+ origins: string[];
94
+ pathPrefix?: string | undefined;
95
+ };
96
+ parameterSchema: Record<string, unknown>;
97
+ preconditions?: Record<string, unknown>[] | undefined;
98
+ notes?: string | undefined;
99
+ locatorExplanations?: string[] | undefined;
100
+ }>;
101
+ }, "strict", z.ZodTypeAny, {
102
+ draft: {
103
+ id: string;
104
+ source: string;
105
+ name: string;
106
+ description: string;
107
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
108
+ allowedOrigins: string[];
109
+ preconditions: Record<string, unknown>[];
110
+ postconditions: Record<string, unknown>[];
111
+ appliesTo: {
112
+ origins: string[];
113
+ pathPrefix?: string | undefined;
114
+ };
115
+ parameterSchema: Record<string, unknown>;
116
+ notes: string;
117
+ locatorExplanations: string[];
118
+ };
119
+ }, {
120
+ draft: {
121
+ id: string;
122
+ source: string;
123
+ name: string;
124
+ description: string;
125
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
126
+ allowedOrigins: string[];
127
+ postconditions: Record<string, unknown>[];
128
+ appliesTo: {
129
+ origins: string[];
130
+ pathPrefix?: string | undefined;
131
+ };
132
+ parameterSchema: Record<string, unknown>;
133
+ preconditions?: Record<string, unknown>[] | undefined;
134
+ notes?: string | undefined;
135
+ locatorExplanations?: string[] | undefined;
136
+ };
137
+ }>;
138
+ export declare const BrowserWorkflowExecutionInputSchema: z.ZodObject<{
139
+ id: z.ZodString;
140
+ version: z.ZodString;
141
+ } & {
142
+ pageId: z.ZodString;
143
+ args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
144
+ scriptApproval: z.ZodOptional<z.ZodObject<{
145
+ id: z.ZodString;
146
+ }, "strict", z.ZodTypeAny, {
147
+ id: string;
148
+ }, {
149
+ id: string;
150
+ }>>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ id: string;
153
+ args: Record<string, unknown>;
154
+ pageId: string;
155
+ version: string;
156
+ scriptApproval?: {
157
+ id: string;
158
+ } | undefined;
159
+ }, {
160
+ id: string;
161
+ pageId: string;
162
+ version: string;
163
+ args?: Record<string, unknown> | undefined;
164
+ scriptApproval?: {
165
+ id: string;
166
+ } | undefined;
167
+ }>;
168
+ export declare const BrowserWorkflowSetStatusInputSchema: z.ZodObject<{
169
+ id: z.ZodString;
170
+ version: z.ZodString;
171
+ } & {
172
+ status: z.ZodEnum<["active", "disabled"]>;
173
+ toolActionApproval: z.ZodOptional<z.ZodObject<{
174
+ id: z.ZodString;
175
+ }, "strip", z.ZodTypeAny, {
176
+ id: string;
177
+ }, {
178
+ id: string;
179
+ }>>;
180
+ }, "strict", z.ZodTypeAny, {
181
+ status: "disabled" | "active";
182
+ id: string;
183
+ version: string;
184
+ toolActionApproval?: {
185
+ id: string;
186
+ } | undefined;
187
+ }, {
188
+ status: "disabled" | "active";
189
+ id: string;
190
+ version: string;
191
+ toolActionApproval?: {
192
+ id: string;
193
+ } | undefined;
194
+ }>;
195
+ export declare const BrowserWorkflowExecutionOutputSchema: z.ZodObject<{
196
+ workflow: z.ZodObject<{
197
+ id: z.ZodString;
198
+ version: z.ZodString;
199
+ } & {
200
+ status: z.ZodEnum<["draft", "active", "disabled", "suspended"]>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ status: "disabled" | "draft" | "active" | "suspended";
203
+ id: string;
204
+ version: string;
205
+ }, {
206
+ status: "disabled" | "draft" | "active" | "suspended";
207
+ id: string;
208
+ version: string;
209
+ }>;
210
+ result: z.ZodObject<{
211
+ executionId: z.ZodString;
212
+ status: z.ZodEnum<["completed", "failed", "cancelled", "timed_out"]>;
213
+ verification: z.ZodEnum<["passed", "not_requested", "failed"]>;
214
+ value: z.ZodOptional<z.ZodUnknown>;
215
+ logs: z.ZodArray<z.ZodString, "many">;
216
+ actions: z.ZodArray<z.ZodObject<{
217
+ index: z.ZodNumber;
218
+ method: z.ZodString;
219
+ executed: z.ZodBoolean;
220
+ verification: z.ZodEnum<["not_requested", "passed", "failed"]>;
221
+ elapsedMs: z.ZodNumber;
222
+ errorCode: z.ZodOptional<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ index: number;
225
+ method: string;
226
+ executed: boolean;
227
+ verification: "not_requested" | "passed" | "failed";
228
+ elapsedMs: number;
229
+ errorCode?: string | undefined;
230
+ }, {
231
+ index: number;
232
+ method: string;
233
+ executed: boolean;
234
+ verification: "not_requested" | "passed" | "failed";
235
+ elapsedMs: number;
236
+ errorCode?: string | undefined;
237
+ }>, "many">;
238
+ checks: z.ZodArray<z.ZodObject<{
239
+ passed: z.ZodBoolean;
240
+ kind: z.ZodString;
241
+ elapsedMs: z.ZodNumber;
242
+ actual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ passed: boolean;
245
+ elapsedMs: number;
246
+ kind: string;
247
+ actual?: Record<string, string | number | boolean | null> | undefined;
248
+ }, {
249
+ passed: boolean;
250
+ elapsedMs: number;
251
+ kind: string;
252
+ actual?: Record<string, string | number | boolean | null> | undefined;
253
+ }>, "many">;
254
+ observation: z.ZodObject<{
255
+ beforeUrl: z.ZodOptional<z.ZodString>;
256
+ afterUrl: z.ZodOptional<z.ZodString>;
257
+ changed: z.ZodBoolean;
258
+ changes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ changed: boolean;
261
+ beforeUrl?: string | undefined;
262
+ afterUrl?: string | undefined;
263
+ changes?: string[] | undefined;
264
+ }, {
265
+ changed: boolean;
266
+ beforeUrl?: string | undefined;
267
+ afterUrl?: string | undefined;
268
+ changes?: string[] | undefined;
269
+ }>;
270
+ artifacts: z.ZodArray<z.ZodObject<{
271
+ id: z.ZodString;
272
+ path: z.ZodString;
273
+ mimeType: z.ZodLiteral<"image/png">;
274
+ }, "strip", z.ZodTypeAny, {
275
+ path: string;
276
+ id: string;
277
+ mimeType: "image/png";
278
+ }, {
279
+ path: string;
280
+ id: string;
281
+ mimeType: "image/png";
282
+ }>, "many">;
283
+ error: z.ZodOptional<z.ZodObject<{
284
+ code: z.ZodString;
285
+ message: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ code: string;
288
+ message: string;
289
+ }, {
290
+ code: string;
291
+ message: string;
292
+ }>>;
293
+ metrics: z.ZodObject<{
294
+ elapsedMs: z.ZodNumber;
295
+ helperCalls: z.ZodNumber;
296
+ verifiedAssertions: z.ZodNumber;
297
+ }, "strip", z.ZodTypeAny, {
298
+ elapsedMs: number;
299
+ helperCalls: number;
300
+ verifiedAssertions: number;
301
+ }, {
302
+ elapsedMs: number;
303
+ helperCalls: number;
304
+ verifiedAssertions: number;
305
+ }>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ status: "failed" | "completed" | "cancelled" | "timed_out";
308
+ verification: "not_requested" | "passed" | "failed";
309
+ executionId: string;
310
+ logs: string[];
311
+ actions: {
312
+ index: number;
313
+ method: string;
314
+ executed: boolean;
315
+ verification: "not_requested" | "passed" | "failed";
316
+ elapsedMs: number;
317
+ errorCode?: string | undefined;
318
+ }[];
319
+ checks: {
320
+ passed: boolean;
321
+ elapsedMs: number;
322
+ kind: string;
323
+ actual?: Record<string, string | number | boolean | null> | undefined;
324
+ }[];
325
+ observation: {
326
+ changed: boolean;
327
+ beforeUrl?: string | undefined;
328
+ afterUrl?: string | undefined;
329
+ changes?: string[] | undefined;
330
+ };
331
+ artifacts: {
332
+ path: string;
333
+ id: string;
334
+ mimeType: "image/png";
335
+ }[];
336
+ metrics: {
337
+ elapsedMs: number;
338
+ helperCalls: number;
339
+ verifiedAssertions: number;
340
+ };
341
+ value?: unknown;
342
+ error?: {
343
+ code: string;
344
+ message: string;
345
+ } | undefined;
346
+ }, {
347
+ status: "failed" | "completed" | "cancelled" | "timed_out";
348
+ verification: "not_requested" | "passed" | "failed";
349
+ executionId: string;
350
+ logs: string[];
351
+ actions: {
352
+ index: number;
353
+ method: string;
354
+ executed: boolean;
355
+ verification: "not_requested" | "passed" | "failed";
356
+ elapsedMs: number;
357
+ errorCode?: string | undefined;
358
+ }[];
359
+ checks: {
360
+ passed: boolean;
361
+ elapsedMs: number;
362
+ kind: string;
363
+ actual?: Record<string, string | number | boolean | null> | undefined;
364
+ }[];
365
+ observation: {
366
+ changed: boolean;
367
+ beforeUrl?: string | undefined;
368
+ afterUrl?: string | undefined;
369
+ changes?: string[] | undefined;
370
+ };
371
+ artifacts: {
372
+ path: string;
373
+ id: string;
374
+ mimeType: "image/png";
375
+ }[];
376
+ metrics: {
377
+ elapsedMs: number;
378
+ helperCalls: number;
379
+ verifiedAssertions: number;
380
+ };
381
+ value?: unknown;
382
+ error?: {
383
+ code: string;
384
+ message: string;
385
+ } | undefined;
386
+ }>;
387
+ needsReexploration: z.ZodBoolean;
388
+ validationRecorded: z.ZodOptional<z.ZodBoolean>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ result: {
391
+ status: "failed" | "completed" | "cancelled" | "timed_out";
392
+ verification: "not_requested" | "passed" | "failed";
393
+ executionId: string;
394
+ logs: string[];
395
+ actions: {
396
+ index: number;
397
+ method: string;
398
+ executed: boolean;
399
+ verification: "not_requested" | "passed" | "failed";
400
+ elapsedMs: number;
401
+ errorCode?: string | undefined;
402
+ }[];
403
+ checks: {
404
+ passed: boolean;
405
+ elapsedMs: number;
406
+ kind: string;
407
+ actual?: Record<string, string | number | boolean | null> | undefined;
408
+ }[];
409
+ observation: {
410
+ changed: boolean;
411
+ beforeUrl?: string | undefined;
412
+ afterUrl?: string | undefined;
413
+ changes?: string[] | undefined;
414
+ };
415
+ artifacts: {
416
+ path: string;
417
+ id: string;
418
+ mimeType: "image/png";
419
+ }[];
420
+ metrics: {
421
+ elapsedMs: number;
422
+ helperCalls: number;
423
+ verifiedAssertions: number;
424
+ };
425
+ value?: unknown;
426
+ error?: {
427
+ code: string;
428
+ message: string;
429
+ } | undefined;
430
+ };
431
+ workflow: {
432
+ status: "disabled" | "draft" | "active" | "suspended";
433
+ id: string;
434
+ version: string;
435
+ };
436
+ needsReexploration: boolean;
437
+ validationRecorded?: boolean | undefined;
438
+ }, {
439
+ result: {
440
+ status: "failed" | "completed" | "cancelled" | "timed_out";
441
+ verification: "not_requested" | "passed" | "failed";
442
+ executionId: string;
443
+ logs: string[];
444
+ actions: {
445
+ index: number;
446
+ method: string;
447
+ executed: boolean;
448
+ verification: "not_requested" | "passed" | "failed";
449
+ elapsedMs: number;
450
+ errorCode?: string | undefined;
451
+ }[];
452
+ checks: {
453
+ passed: boolean;
454
+ elapsedMs: number;
455
+ kind: string;
456
+ actual?: Record<string, string | number | boolean | null> | undefined;
457
+ }[];
458
+ observation: {
459
+ changed: boolean;
460
+ beforeUrl?: string | undefined;
461
+ afterUrl?: string | undefined;
462
+ changes?: string[] | undefined;
463
+ };
464
+ artifacts: {
465
+ path: string;
466
+ id: string;
467
+ mimeType: "image/png";
468
+ }[];
469
+ metrics: {
470
+ elapsedMs: number;
471
+ helperCalls: number;
472
+ verifiedAssertions: number;
473
+ };
474
+ value?: unknown;
475
+ error?: {
476
+ code: string;
477
+ message: string;
478
+ } | undefined;
479
+ };
480
+ workflow: {
481
+ status: "disabled" | "draft" | "active" | "suspended";
482
+ id: string;
483
+ version: string;
484
+ };
485
+ needsReexploration: boolean;
486
+ validationRecorded?: boolean | undefined;
487
+ }>;
488
+ type ExecutionOptions = {
489
+ workflowKey?: string;
490
+ beforeAction?: () => Promise<void>;
491
+ toolName?: string;
492
+ };
493
+ type WorkflowDependencies = {
494
+ store: WorkflowStore;
495
+ execute: (input: BrowserExecuteInput, ctx: AgentContext, options?: ExecutionOptions) => Promise<{
496
+ result: BrowserExecuteResult;
497
+ executionDigest: string;
498
+ }>;
499
+ readPageUrl: (pageId: string) => Promise<string>;
500
+ compile: typeof compileBrowserScript;
501
+ };
502
+ export declare function setBrowserWorkflowDepsForTests(overrides?: Partial<WorkflowDependencies>): void;
503
+ export declare const browserWorkflowList: import("@roll-agent/sdk").ToolDefinition<{
504
+ url: string;
505
+ }, {
506
+ workflows: {
507
+ id: string;
508
+ version: string;
509
+ name: string;
510
+ description: string;
511
+ appliesTo: import("../workflows/store.ts").WorkflowDraft["appliesTo"];
512
+ parameterSchema: import("../workflows/store.ts").WorkflowDraft["parameterSchema"];
513
+ }[];
514
+ }>;
515
+ export declare const browserWorkflowSaveDraft: import("@roll-agent/sdk").ToolDefinition<{
516
+ draft: {
517
+ id: string;
518
+ source: string;
519
+ name: string;
520
+ description: string;
521
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
522
+ allowedOrigins: string[];
523
+ postconditions: Record<string, unknown>[];
524
+ appliesTo: {
525
+ origins: string[];
526
+ pathPrefix?: string | undefined;
527
+ };
528
+ parameterSchema: Record<string, unknown>;
529
+ preconditions?: Record<string, unknown>[] | undefined;
530
+ notes?: string | undefined;
531
+ locatorExplanations?: string[] | undefined;
532
+ };
533
+ }, {
534
+ id: string;
535
+ version: string;
536
+ name: string;
537
+ status: "disabled" | "draft" | "active" | "suspended";
538
+ validationCount: number;
539
+ }>;
540
+ export declare const browserWorkflowValidate: import("@roll-agent/sdk").ToolDefinition<{
541
+ id: string;
542
+ pageId: string;
543
+ version: string;
544
+ args?: Record<string, unknown> | undefined;
545
+ scriptApproval?: {
546
+ id: string;
547
+ } | undefined;
548
+ }, {
549
+ result: {
550
+ status: "failed" | "completed" | "cancelled" | "timed_out";
551
+ verification: "not_requested" | "passed" | "failed";
552
+ executionId: string;
553
+ logs: string[];
554
+ actions: {
555
+ index: number;
556
+ method: string;
557
+ executed: boolean;
558
+ verification: "not_requested" | "passed" | "failed";
559
+ elapsedMs: number;
560
+ errorCode?: string | undefined;
561
+ }[];
562
+ checks: {
563
+ passed: boolean;
564
+ elapsedMs: number;
565
+ kind: string;
566
+ actual?: Record<string, string | number | boolean | null> | undefined;
567
+ }[];
568
+ observation: {
569
+ changed: boolean;
570
+ beforeUrl?: string | undefined;
571
+ afterUrl?: string | undefined;
572
+ changes?: string[] | undefined;
573
+ };
574
+ artifacts: {
575
+ path: string;
576
+ id: string;
577
+ mimeType: "image/png";
578
+ }[];
579
+ metrics: {
580
+ elapsedMs: number;
581
+ helperCalls: number;
582
+ verifiedAssertions: number;
583
+ };
584
+ value?: unknown;
585
+ error?: {
586
+ code: string;
587
+ message: string;
588
+ } | undefined;
589
+ };
590
+ workflow: {
591
+ status: "disabled" | "draft" | "active" | "suspended";
592
+ id: string;
593
+ version: string;
594
+ };
595
+ needsReexploration: boolean;
596
+ validationRecorded?: boolean | undefined;
597
+ }>;
598
+ export declare const browserWorkflowSetStatus: import("@roll-agent/sdk").ToolDefinition<{
599
+ status: "disabled" | "active";
600
+ id: string;
601
+ version: string;
602
+ toolActionApproval?: {
603
+ id: string;
604
+ } | undefined;
605
+ }, {
606
+ id: string;
607
+ version: string;
608
+ name: string;
609
+ status: "disabled" | "draft" | "active" | "suspended";
610
+ validationCount: number;
611
+ }>;
612
+ export declare const browserWorkflowRun: import("@roll-agent/sdk").ToolDefinition<{
613
+ id: string;
614
+ pageId: string;
615
+ version: string;
616
+ args?: Record<string, unknown> | undefined;
617
+ scriptApproval?: {
618
+ id: string;
619
+ } | undefined;
620
+ }, {
621
+ result: {
622
+ status: "failed" | "completed" | "cancelled" | "timed_out";
623
+ verification: "not_requested" | "passed" | "failed";
624
+ executionId: string;
625
+ logs: string[];
626
+ actions: {
627
+ index: number;
628
+ method: string;
629
+ executed: boolean;
630
+ verification: "not_requested" | "passed" | "failed";
631
+ elapsedMs: number;
632
+ errorCode?: string | undefined;
633
+ }[];
634
+ checks: {
635
+ passed: boolean;
636
+ elapsedMs: number;
637
+ kind: string;
638
+ actual?: Record<string, string | number | boolean | null> | undefined;
639
+ }[];
640
+ observation: {
641
+ changed: boolean;
642
+ beforeUrl?: string | undefined;
643
+ afterUrl?: string | undefined;
644
+ changes?: string[] | undefined;
645
+ };
646
+ artifacts: {
647
+ path: string;
648
+ id: string;
649
+ mimeType: "image/png";
650
+ }[];
651
+ metrics: {
652
+ elapsedMs: number;
653
+ helperCalls: number;
654
+ verifiedAssertions: number;
655
+ };
656
+ value?: unknown;
657
+ error?: {
658
+ code: string;
659
+ message: string;
660
+ } | undefined;
661
+ };
662
+ workflow: {
663
+ status: "disabled" | "draft" | "active" | "suspended";
664
+ id: string;
665
+ version: string;
666
+ };
667
+ needsReexploration: boolean;
668
+ validationRecorded?: boolean | undefined;
669
+ }>;
670
+ export {};
@@ -1,6 +1,7 @@
1
1
  export declare const clickRef: import("@roll-agent/sdk").ToolDefinition<{
2
2
  ref: string;
3
3
  pageId?: string | undefined;
4
+ snapshotId?: string | undefined;
4
5
  browserActionApproval?: {
5
6
  id: string;
6
7
  } | undefined;
@@ -9,9 +10,9 @@ export declare const clickRef: import("@roll-agent/sdk").ToolDefinition<{
9
10
  target: {
10
11
  x: number;
11
12
  y: number;
12
- ref: string;
13
13
  role: string;
14
14
  name: string;
15
+ ref: string;
15
16
  disabled: boolean;
16
17
  resolvedBy: "backend_node_id" | "role_name_nth";
17
18
  backendNodeId?: number | undefined;
@@ -2,6 +2,7 @@ export declare const typeRef: import("@roll-agent/sdk").ToolDefinition<{
2
2
  ref: string;
3
3
  text: string;
4
4
  pageId?: string | undefined;
5
+ snapshotId?: string | undefined;
5
6
  clear?: boolean | undefined;
6
7
  browserActionApproval?: {
7
8
  id: string;
@@ -11,9 +12,9 @@ export declare const typeRef: import("@roll-agent/sdk").ToolDefinition<{
11
12
  target: {
12
13
  x: number;
13
14
  y: number;
14
- ref: string;
15
15
  role: string;
16
16
  name: string;
17
+ ref: string;
17
18
  disabled: boolean;
18
19
  resolvedBy: "backend_node_id" | "role_name_nth";
19
20
  backendNodeId?: number | undefined;