pub struct InteractParams {
pub action: InteractAction,
pub ref_id: Option<String>,
pub values: Option<Vec<String>>,
pub value: Option<String>,
pub x: Option<f64>,
pub y: Option<f64>,
pub trusted: Option<bool>,
pub webview_label: Option<String>,
}Expand description
Parameters for the compound interact tool (click, hover, focus, scroll, select).
Fields§
§action: InteractActionAction to perform: click, double_click, hover, focus, scroll_into_view, select_option.
ref_id: Option<String>Ref handle ID from a DOM snapshot (e.g. “e5”). Required for click, double_click, hover, focus, select_option.
values: Option<Vec<String>>Option values for select_option action.
value: Option<String>Single option value for select_option (convenience alias for values).
x: Option<f64>Horizontal scroll position (pixels). Used with scroll_into_view when ref_id is null.
y: Option<f64>Vertical scroll position (pixels). Used with scroll_into_view when ref_id is null.
trusted: Option<bool>If true, deliver a real OS mouse click (isTrusted: true) at the
element’s center instead of a synthetic DOM click (for click). Falls
back with an error on platforms without native-input support. Currently
implemented on Windows.
webview_label: Option<String>Target webview label.
Trait Implementations§
Source§impl Debug for InteractParams
impl Debug for InteractParams
Source§impl<'de> Deserialize<'de> for InteractParams
impl<'de> Deserialize<'de> for InteractParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for InteractParams
impl JsonSchema for InteractParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more