pub struct ListDirectoryTool;Expand description
Built-in tool for listing directory contents.
Trait Implementations§
Source§impl BuiltinTool for ListDirectoryTool
impl BuiltinTool for ListDirectoryTool
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Tool name (no colons — distinguishes from MCP “server:tool” format).
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description for the LLM.
Source§fn input_schema(&self) -> Value
fn input_schema(&self) -> Value
JSON schema for tool input parameters.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = ToolResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
args: Value,
_ctx: &'life1 ToolContext,
) -> Pin<Box<dyn Future<Output = ToolResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the tool with the given arguments.
Auto Trait Implementations§
impl Freeze for ListDirectoryTool
impl RefUnwindSafe for ListDirectoryTool
impl Send for ListDirectoryTool
impl Sync for ListDirectoryTool
impl Unpin for ListDirectoryTool
impl UnsafeUnpin for ListDirectoryTool
impl UnwindSafe for ListDirectoryTool
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