MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / known_args

Function known_args

src/commands/executor.rs:11–80  ·  view source on GitHub ↗

Known arguments for each command. Used to detect and report unknown arguments.

(cmd: &str)

Source from the content-addressed store, hash-verified

9
10/// Known arguments for each command. Used to detect and report unknown arguments.
11pub fn known_args(cmd: &str) -> &'static [&'static str] {
12 match cmd {
13 "list-pages" => &[],
14 "new-page" => &[
15 "url",
16 "viewport",
17 "device_scale_factor",
18 "mobile",
19 "geolocation",
20 "accuracy",
21 "extra_headers",
22 ],
23 "close-page" => &["id_or_index"],
24 "select-page" => &["id_or_index"],
25 "navigate" => &[
26 "url",
27 "back",
28 "forward",
29 "reload",
30 "extra_headers",
31 "viewport",
32 "device_scale_factor",
33 "mobile",
34 "geolocation",
35 "accuracy",
36 "clear_all",
37 "output",
38 ],
39 "screenshot" => &[
40 "output",
41 "format",
42 "full_page",
43 "quality",
44 "max_width",
45 "max_height",
46 ],
47 "evaluate" => &["expression", "dialog_action", "output", "track_navigation"],
48 "click" => &["selector"],
49 "click-at" => &["x", "y"],
50 "fill" => &["selector", "value"],
51 "type-text" => &["text", "submit_key"],
52 "press-key" => &["key"],
53 "hover" => &["selector"],
54 "snapshot" => &["output"],
55 "read-page" => &["output"],
56 "take-heapsnapshot" => &["output"],
57 "inspect-heapsnapshot-node" => &["file_path", "node_id"],
58 "emulate" => &[
59 "viewport",
60 "device_scale_factor",
61 "mobile",
62 "geolocation",
63 "accuracy",
64 "clear_viewport",
65 "clear_geolocation",
66 "clear_all",
67 "clear_blocks",
68 ],

Callers 2

validate_argsFunction · 0.85

Calls

no outgoing calls

Tested by 1