pub struct Cli {Show 21 fields
pub policy: PolicyPreset,
pub policy_allow: Vec<PolicyCapability>,
pub policy_confirm: Vec<PolicyCapability>,
pub policy_confirm_once: Vec<PolicyCapability>,
pub policy_allow_host: Vec<String>,
pub policy_deny_host: Vec<String>,
pub profile: String,
pub incognito: bool,
pub attach: bool,
pub target_id: Option<String>,
pub frame_id: Option<String>,
pub port: u16,
pub headed: bool,
pub interaction: InteractionMode,
pub audit: bool,
pub trace_on_error: bool,
pub chrome_path: Option<PathBuf>,
pub mcp: bool,
pub knowledge_store: Option<PathBuf>,
pub prompt: Option<String>,
pub command: Option<Commands>,
}Expand description
Top-level CLI configuration parsed from command-line arguments.
Wraps clap-derived flags for policy, browser selection, session options, and the subcommand to execute.
Fields§
§policy: PolicyPresetBrowser safety preset. Hardened mode fails closed for privileged operations.
policy_allow: Vec<PolicyCapability>Explicitly allow a privileged capability under the selected policy.
policy_confirm: Vec<PolicyCapability>Return a typed confirmation-required result for this capability.
policy_confirm_once: Vec<PolicyCapability>Supply one consumable approval token for a confirmation-required capability.
policy_allow_host: Vec<String>Permit only these exact hosts in hardened mode (repeatable).
policy_deny_host: Vec<String>Deny these exact hosts in hardened mode (repeatable).
profile: StringNamed browser profile used for persistent cookies and storage.
incognito: boolUse a temporary browser profile without persistence.
attach: boolAttach to an existing Chrome CDP endpoint instead of launching Chrome. The default profile value is ignored in this mode.
target_id: Option<String>Chrome page target ID. Required when the selected endpoint has multiple page targets.
frame_id: Option<String>Chrome frame ID used by commands in this one-shot session.
port: u16Chrome remote debugging port.
headed: boolShow the browser window instead of using headless mode.
interaction: InteractionModePointer behavior for click actions.
audit: boolEnable bounded session audit log of high-risk operations.
trace_on_error: boolEmit a bounded JSON failure-trace pack when a browser operation fails.
chrome_path: Option<PathBuf>Path to a Chrome/Chromium binary.
mcp: boolRun the MCP server over stdio.
knowledge_store: Option<PathBuf>Override the per-profile persistent knowledge snapshot path.
prompt: Option<String>One-shot prompt, for example: navigate to https://example.com.
command: Option<Commands>Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more