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
//! Clap derive surface for browser-automation-cli (PRD Camada L).
//!
//! Help text on flags is the primary documentation for this module.
#![allow(missing_docs)]
use clap::{Parser, Subcommand, ValueEnum};
/// One-shot browser automation CLI for AI agents.
#[derive(Debug, Parser)]
#[command(
name = "browser-automation-cli",
version,
about = "One-shot browser automation CLI (Chrome CDP). NASCE, EXECUTA, FINALIZE, MORRE.",
long_about = None,
propagate_version = true
)]
pub struct Cli {
#[command(flatten)]
pub globals: GlobalOpts,
#[command(subcommand)]
pub command: Commands,
}
#[derive(Debug, Clone, Parser)]
pub struct GlobalOpts {
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_JSON")]
pub json: bool,
/// Suppress non-error human logs on stderr
#[arg(
short = 'q',
long = "quiet",
global = true,
env = "BROWSER_AUTOMATION_CLI_QUIET"
)]
pub quiet: bool,
/// Increase stderr verbosity (`--verbose` once = info; use RUST_LOG for finer control)
#[arg(
long = "verbose",
global = true,
env = "BROWSER_AUTOMATION_CLI_VERBOSE"
)]
pub verbose: bool,
/// Maximum tracing detail on stderr (debug/trace)
#[arg(long = "debug", global = true, env = "BROWSER_AUTOMATION_CLI_DEBUG")]
pub debug: bool,
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_TIMEOUT",
default_value_t = 0
)]
pub timeout: u64,
/// Per-step timeout in seconds for `run` scripts (0 = inherit global timeout)
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_STEP_TIMEOUT",
default_value_t = 0
)]
pub step_timeout: u64,
/// Launch Chrome with a visible window (debug; default headless=new)
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_HEADED")]
pub headed: bool,
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_ARTIFACTS_DIR")]
pub artifacts_dir: Option<std::path::PathBuf>,
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_LANG")]
pub lang: Option<String>,
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_CAPTURE_CONSOLE")]
pub capture_console: bool,
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_CAPTURE_NETWORK")]
pub capture_network: bool,
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_IGNORE_ROBOTS")]
pub ignore_robots: bool,
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_I_ACCEPT_ROBOTS_RISK"
)]
pub i_accept_robots_risk: bool,
/// Enable deep heap analysis tools (PRD category-memory)
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_CATEGORY_MEMORY")]
pub category_memory: bool,
/// Enable extension management tools
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_CATEGORY_EXTENSIONS"
)]
pub category_extensions: bool,
/// Enable third-party developer tool surface
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_CATEGORY_THIRD_PARTY"
)]
pub category_third_party: bool,
/// Enable WebMCP-compatible tool surface
#[arg(long, global = true, env = "BROWSER_AUTOMATION_CLI_CATEGORY_WEBMCP")]
pub category_webmcp: bool,
/// Enable experimental screencast (may require ffmpeg for file export)
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_EXPERIMENTAL_SCREENCAST"
)]
pub experimental_screencast: bool,
/// Enable coordinate click-at (vision) tools
#[arg(
long,
global = true,
env = "BROWSER_AUTOMATION_CLI_EXPERIMENTAL_VISION"
)]
pub experimental_vision: bool,
}
#[derive(Debug, Subcommand)]
pub enum Commands {
/// Diagnose Chrome install and one-shot readiness
Doctor {
#[arg(long)]
offline: bool,
#[arg(long)]
quick: bool,
#[arg(long)]
fix: bool,
#[arg(long)]
json: bool,
},
/// List available commands
Commands {
#[arg(long)]
json: bool,
},
/// JSON Schema fragment for a command (agent discovery)
Schema {
#[arg(long = "cmd", value_name = "CMD")]
cmd: String,
},
/// Print CLI version
Version,
/// Navigate to a URL (one-shot)
Goto {
url: String,
/// JS to evaluate before navigation (tool-ref initScript)
#[arg(long)]
init_script: Option<String>,
/// Accept beforeunload dialogs automatically
#[arg(long)]
handle_before_unload: bool,
/// Navigation timeout override in milliseconds
#[arg(long)]
navigation_timeout_ms: Option<u64>,
},
/// Accessibility snapshot with @eN refs
View {
#[arg(long)]
verbose: bool,
#[arg(long)]
path: Option<std::path::PathBuf>,
},
/// Click an element (selector or @eN)
Press {
target: String,
#[arg(long)]
dblclick: bool,
/// Attach slim a11y snapshot in the same process after the action
#[arg(long)]
include_snapshot: bool,
},
/// Click at page CSS coordinates (requires --experimental-vision)
ClickAt {
#[arg(long)]
x: f64,
#[arg(long)]
y: f64,
#[arg(long)]
dblclick: bool,
/// Attach slim a11y snapshot after the click
#[arg(long)]
include_snapshot: bool,
},
/// Fill an input value (select/checkbox/radio/text smart fill)
Write {
target: String,
value: String,
/// Attach slim a11y snapshot after fill
#[arg(long)]
include_snapshot: bool,
},
/// Press a keyboard key
Keys {
key: String,
/// Attach slim a11y snapshot after the key press
#[arg(long)]
include_snapshot: bool,
},
/// Type text (tool-ref type_text). Use --target or --focus-only.
Type {
/// Text to type (required positional)
text: String,
/// CSS selector or @eN (optional; use --focus-only for focused element)
#[arg(long)]
target: Option<String>,
#[arg(long)]
clear: bool,
/// Optional key to press after typing (e.g. Enter)
#[arg(long)]
submit: Option<String>,
/// Type into currently focused element without resolving a target
#[arg(long)]
focus_only: bool,
},
/// Wait for ms and/or text and/or selector and/or load state
Wait {
#[arg(long, default_value_t = 0)]
ms: u64,
/// Text to wait for (repeatable; resolves when any value appears — tool-ref OR)
#[arg(long = "text", action = clap::ArgAction::Append)]
text: Vec<String>,
#[arg(long)]
selector: Option<String>,
/// Page lifecycle: load | domcontentloaded | networkidle | none
#[arg(long)]
state: Option<String>,
/// Max wait time in milliseconds for text/selector/state (0 = default)
#[arg(long)]
wait_timeout_ms: Option<u64>,
/// Attach slim a11y snapshot after the wait succeeds
#[arg(long)]
include_snapshot: bool,
},
/// Hover an element
Hover {
target: String,
/// Attach slim a11y snapshot after hover
#[arg(long)]
include_snapshot: bool,
},
/// Drag from one target to another
Drag {
#[arg(long)]
from: String,
#[arg(long)]
to: String,
/// Attach slim a11y snapshot after drag
#[arg(long)]
include_snapshot: bool,
},
/// Fill multiple form fields from JSON `[{target|uid,value},...]`
FillForm {
#[arg(long)]
json: String,
/// Attach slim a11y snapshot after fill-form
#[arg(long)]
include_snapshot: bool,
},
/// Upload a file to a file input
Upload {
target: String,
path: std::path::PathBuf,
/// Attach slim a11y snapshot after upload
#[arg(long)]
include_snapshot: bool,
},
/// History back
Back,
/// History forward
Forward,
/// Reload current page
Reload {
#[arg(long)]
ignore_cache: bool,
/// JS to run before navigation/reload (tool-ref initScript)
#[arg(long)]
init_script: Option<String>,
/// Accept beforeunload dialogs automatically
#[arg(long)]
handle_before_unload: bool,
},
/// Evaluate JavaScript (expression or function declaration)
Eval {
/// JS expression or function declaration `() => ...`
expression: String,
/// Snapshot uids (@eN) passed as function args (JSON array of strings)
#[arg(long)]
args: Option<String>,
/// accept | dismiss | prompt response text (default accept)
#[arg(long)]
dialog_action: Option<String>,
/// Write evaluate result JSON to this path
#[arg(long)]
file_path: Option<std::path::PathBuf>,
},
/// Capture a screenshot
Grab {
#[arg(long)]
path: Option<std::path::PathBuf>,
#[arg(long, value_enum, default_value_t = GrabFormat::Png)]
format: GrabFormat,
#[arg(long)]
full_page: bool,
#[arg(long)]
quality: Option<i32>,
/// CSS selector or @eN element to capture
#[arg(long)]
element: Option<String>,
},
/// Run multi-step NDJSON script in one process
Run {
#[arg(long)]
script: std::path::PathBuf,
},
/// Limited inline subcommand (goto)
Exec {
// Do NOT set allow_hyphen_values: global flags like --json after `exec`
// must stay on GlobalOpts, not be swallowed into trailing args.
#[arg(trailing_var_arg = true)]
args: Vec<String>,
},
/// Extract text or attribute from a target
Extract {
target: String,
#[arg(long)]
attr: Option<String>,
},
/// Extract visible text from a target (PRD §7 `text`)
Text { target: String },
/// Scroll page or element by delta pixels (PRD §7 `scroll`)
Scroll {
/// CSS selector or @eN (optional; omit for window scroll)
#[arg(long)]
target: Option<String>,
#[arg(long, default_value_t = 0.0)]
delta_x: f64,
#[arg(long, default_value_t = 0.0)]
delta_y: f64,
},
/// Cookie jar helpers for the active page (Network domain)
Cookie {
#[command(subcommand)]
action: CookieAction,
},
/// Read one attribute from a target
Attr { target: String, name: String },
/// Assertions (url / text / console)
Assert {
#[command(subcommand)]
kind: AssertKind,
},
/// Captured console messages (--capture-console)
Console {
#[command(subcommand)]
action: ConsoleAction,
},
/// Captured network requests (--capture-network)
Net {
#[command(subcommand)]
action: NetAction,
},
/// Page info or multi-tab management
Page {
#[command(subcommand)]
action: Option<PageAction>,
},
/// Accept or dismiss dialogs
Dialog {
#[command(subcommand)]
action: DialogAction,
},
/// Navigate and return body text
Scrape { url: String },
/// Emulate device / network / UA / geo / CPU
Emulate {
#[arg(long)]
user_agent: Option<String>,
#[arg(long)]
locale: Option<String>,
#[arg(long)]
timezone: Option<String>,
#[arg(long)]
offline: bool,
#[arg(long)]
latitude: Option<f64>,
#[arg(long)]
longitude: Option<f64>,
#[arg(long)]
media: Option<String>,
/// Network preset: Offline, No throttling, Slow 3G, Fast 3G, Slow 4G, Fast 4G
#[arg(long)]
network_conditions: Option<String>,
/// CPU slowdown factor 1..=20 (1 disables)
#[arg(long)]
cpu_throttling_rate: Option<f64>,
/// prefers-color-scheme: dark | light | auto
#[arg(long)]
color_scheme: Option<String>,
/// Extra HTTP headers as JSON object string
#[arg(long)]
extra_headers: Option<String>,
/// Viewport `WxHxDPR` with optional `,mobile`, `,touch`, `,landscape` flags
#[arg(long)]
viewport: Option<String>,
},
/// Resize page viewport
Resize {
#[arg(long)]
width: i32,
#[arg(long)]
height: i32,
#[arg(long, default_value_t = 1.0)]
scale: f64,
#[arg(long)]
mobile: bool,
},
/// Performance trace / metrics
Perf {
#[command(subcommand)]
action: PerfAction,
},
/// Run Lighthouse audit (external binary)
Lighthouse {
url: String,
#[arg(long)]
out_dir: Option<std::path::PathBuf>,
#[arg(long, default_value = "desktop")]
device: String,
/// navigation (default) or snapshot (maps to navigation in one-shot CLI)
#[arg(long, default_value = "navigation")]
mode: String,
#[arg(long)]
lighthouse_path: Option<std::path::PathBuf>,
},
/// Screencast start/stop (experimental)
Screencast {
#[command(subcommand)]
action: ScreencastAction,
},
/// Heap snapshot tools (requires --category-memory for deep analysis)
Heap {
#[command(subcommand)]
action: HeapAction,
},
/// Chrome extension tools (requires --category-extensions)
Extension {
#[command(subcommand)]
action: ExtensionAction,
},
/// Third-party developer tools surface (requires --category-third-party)
Devtools3p {
#[command(subcommand)]
action: Devtools3pAction,
},
/// Web surface tools (requires --category-webmcp)
Webmcp {
#[command(subcommand)]
action: WebmcpAction,
},
/// Generate shell completions (path leve, no Chrome)
Completions {
#[arg(value_enum)]
shell: CompletionShell,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum PerfAction {
Start {
#[arg(long)]
path: Option<std::path::PathBuf>,
#[arg(long)]
reload: bool,
/// Auto-stop after page load/reload (tool-ref autoStop)
#[arg(long)]
auto_stop: bool,
},
Stop {
#[arg(long)]
path: Option<std::path::PathBuf>,
},
Insight {
/// Insight name (e.g. DocumentLatency, LCPBreakdown)
#[arg(long)]
name: Option<String>,
/// Insight set id from perf stop "available_insight_sets"
#[arg(long)]
insight_set_id: Option<String>,
/// Alias for --name (tool-ref insightName)
#[arg(long)]
insight_name: Option<String>,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum ScreencastAction {
Start {
#[arg(long)]
path: Option<std::path::PathBuf>,
},
Stop {
/// Output path (.webm/.mp4 encodes via ffmpeg; otherwise PNG frames dir)
#[arg(long)]
path: Option<std::path::PathBuf>,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum HeapAction {
Take {
#[arg(long)]
path: std::path::PathBuf,
},
Close {
#[arg(long)]
path: std::path::PathBuf,
},
Compare {
#[arg(long)]
base: std::path::PathBuf,
#[arg(long)]
current: std::path::PathBuf,
/// Optional class index filter (tool-ref classIndex)
#[arg(long)]
class_index: Option<u64>,
},
Summary {
#[arg(long)]
path: std::path::PathBuf,
},
Details {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
filter_name: Option<String>,
#[arg(long)]
page_idx: Option<usize>,
#[arg(long)]
page_size: Option<usize>,
},
ClassNodes {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
id: u64,
#[arg(long)]
filter_name: Option<String>,
#[arg(long)]
page_idx: Option<usize>,
#[arg(long)]
page_size: Option<usize>,
},
Dominators {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
node: u64,
},
DupStrings {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
page_idx: Option<usize>,
#[arg(long)]
page_size: Option<usize>,
},
Edges {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
node: u64,
#[arg(long)]
page_idx: Option<usize>,
#[arg(long)]
page_size: Option<usize>,
},
Retainers {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
node: u64,
#[arg(long)]
page_idx: Option<usize>,
#[arg(long)]
page_size: Option<usize>,
},
Paths {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
node: u64,
#[arg(long, default_value_t = 8)]
max_depth: u64,
#[arg(long)]
max_nodes: Option<u64>,
#[arg(long)]
max_siblings: Option<u64>,
},
/// Detailed info for one heap object (size, distance, retained size, detachedness)
ObjectDetails {
#[arg(long)]
path: std::path::PathBuf,
#[arg(long)]
node: u64,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum ExtensionAction {
List,
Install {
path: std::path::PathBuf,
},
Reload {
id: String,
/// Unpacked extension dir so one-shot can --load-extension before reload
#[arg(long)]
path: Option<std::path::PathBuf>,
},
Trigger {
id: String,
/// Unpacked extension dir so one-shot can --load-extension before trigger
#[arg(long)]
path: Option<std::path::PathBuf>,
},
Uninstall {
id: String,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum Devtools3pAction {
List {
/// Optional page URL to open before discovery
#[arg(long)]
url: Option<String>,
},
Exec {
name: String,
#[arg(long)]
params: Option<String>,
#[arg(long)]
url: Option<String>,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum WebmcpAction {
List {
#[arg(long)]
url: Option<String>,
},
Exec {
name: String,
#[arg(long)]
input: Option<String>,
#[arg(long)]
url: Option<String>,
},
}
#[derive(Debug, Clone, Copy, ValueEnum)]
pub enum CompletionShell {
Bash,
Zsh,
Fish,
Elvish,
Powershell,
}
#[derive(Debug, Clone, Subcommand)]
pub enum PageAction {
/// Current page url and title (default when bare `page`)
Info,
/// List tabs in this one-shot process
List,
/// Open a new tab
New {
#[arg(long)]
url: Option<String>,
/// Open without focusing (tool-ref background)
#[arg(long)]
background: bool,
/// Create isolated browser context when supported
#[arg(long)]
isolated_context: bool,
},
/// Select tab by zero-based index (alias: --page-id)
Select {
#[arg(value_name = "INDEX")]
index: Option<usize>,
/// Tool-ref pageId alias for index
#[arg(long = "page-id")]
page_id: Option<usize>,
/// Bring selected tab to front (tool-ref bringToFront)
#[arg(long, default_value_t = true)]
bring_to_front: bool,
},
/// Close a tab (default: active)
Close {
#[arg(long)]
index: Option<usize>,
/// Tool-ref pageId alias for index
#[arg(long = "page-id")]
page_id: Option<usize>,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum CookieAction {
/// List cookies (optional URL filter)
List {
#[arg(long)]
url: Option<String>,
},
/// Set cookies from a JSON array of cookie objects
Set {
/// JSON array: [{"name":"a","value":"b","url":"https://..."}]
#[arg(long)]
json: String,
},
/// Clear all browser cookies in this one-shot process
Clear,
}
#[derive(Debug, Clone, Copy, ValueEnum, Default)]
pub enum GrabFormat {
#[default]
Png,
Jpeg,
Webp,
}
#[derive(Debug, Clone, Subcommand)]
pub enum AssertKind {
Url {
value: String,
#[arg(long)]
contains: bool,
},
Text {
value: String,
#[arg(long)]
target: Option<String>,
},
Console {
#[arg(long, default_value = "error")]
level: String,
#[arg(long, default_value_t = 0)]
max: u64,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum ConsoleAction {
List {
/// 0-based page index for pagination
#[arg(long)]
page_idx: Option<usize>,
/// Max messages per page
#[arg(long)]
page_size: Option<usize>,
/// Filter by types (comma-separated: log,warning,error,info,debug)
#[arg(long)]
types: Option<String>,
/// Include messages preserved across navigations in this process
#[arg(long)]
include_preserved: bool,
/// Optional service worker id filter
#[arg(long)]
service_worker_id: Option<String>,
},
Get {
id: usize,
},
Clear,
Dump {
#[arg(long)]
path: std::path::PathBuf,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum NetAction {
List {
/// 0-based page index for pagination
#[arg(long)]
page_idx: Option<usize>,
/// Max requests per page
#[arg(long)]
page_size: Option<usize>,
/// Filter resource types (comma-separated: Document,Script,XHR,Fetch,...)
#[arg(long)]
resource_types: Option<String>,
/// Include requests preserved over recent navigations in this process
#[arg(long)]
include_preserved: bool,
},
Get {
/// 0-based index in net list, or CDP requestId string
id: String,
#[arg(long)]
request_path: Option<std::path::PathBuf>,
#[arg(long)]
response_path: Option<std::path::PathBuf>,
},
}
#[derive(Debug, Clone, Subcommand)]
pub enum DialogAction {
Accept {
#[arg(long)]
text: Option<String>,
},
Dismiss,
}