pub struct CallContext {Show 21 fields
pub app: Option<String>,
pub window: Option<String>,
pub element: Option<u32>,
pub diff: bool,
pub full: bool,
pub return_state: bool,
pub include_screenshot: bool,
pub coord: Option<String>,
pub session: Option<String>,
pub tier: Option<String>,
pub adapter: Option<String>,
pub display: Option<String>,
pub require_visible: bool,
pub policy: Option<String>,
pub confirm_cmd: Option<String>,
pub allow_foreground: bool,
pub require_background: bool,
pub no_overlay: bool,
pub cdp: bool,
pub cdp_url: Option<String>,
pub browser_blocked_urls: Vec<String>,
}Expand description
Flags shared by every action. JSON keys are removed before the action is decoded.
Fields§
§app: Option<String>Target application: name, bundle id, or pid.
window: Option<String>Target window: title, z-order index, or id:<number>.
element: Option<u32>Element index in the current revision. Used from P3.
diff: boolEmit a tree diff when a baseline exists.
full: boolReplace the tree baseline with the full tree.
return_state: boolAttach post-action state. Used from P5.
include_screenshot: boolAttach a screenshot with post-action state. Used from P5.
coord: Option<String>Coordinate space name. Used from P5.
session: Option<String>Cache namespace. Defaults to the process id in later phases.
tier: Option<String>Input tier name. Used from P7.
adapter: Option<String>Adapter name. Used from P5.
display: Option<String>Display filter. Used from P14.
require_visible: boolFail when the element is outside the window and scroll-into-view cannot run.
policy: Option<String>User policy file from --policy. Absent uses the default path.
confirm_cmd: Option<String>Confirm hook from --confirm-cmd. Wins over the environment and the policy file.
allow_foreground: boolSkip foreground.lock for tier activate.
require_background: boolRefuse tier activate, and treat cursor motion as failure.
no_overlay: boolDo not send the agent point to the overlay helper.
cdp: boolRoute browser commands through CDP. The dispatcher refuses the request
when this flag is off (invalid_arguments for the CLI, unsupported
for the JSON path).
cdp_url: Option<String>Override the discovered CDP websocket URL. Wins over --app argv
discovery. Accepts ws://, wss://, http://, https://.
browser_blocked_urls: Vec<String>Cached [browser].blocked_urls from the loaded policy. The dispatcher
refuses the websocket connection (and the page activation) when the
destination URL is in here.