pub struct ClickTool;Expand description
Tool for clicking elements
Trait Implementations§
Source§impl Tool for ClickTool
impl Tool for ClickTool
Source§type Params = ClickParams
type Params = ClickParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
params: ClickParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, params: ClickParams, context: &mut ToolContext<'_>, ) -> Result<ToolResult>
Execute the tool with strongly-typed parameters
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
Get tool parameter schema (JSON Schema)
Source§fn execute(
&self,
params: Value,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute( &self, params: Value, context: &mut ToolContext<'_>, ) -> Result<ToolResult>
Execute the tool with JSON parameters (default implementation)
Auto Trait Implementations§
impl Freeze for ClickTool
impl RefUnwindSafe for ClickTool
impl Send for ClickTool
impl Sync for ClickTool
impl Unpin for ClickTool
impl UnwindSafe for ClickTool
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
Mutably borrows from an owned value. Read more