pub struct PluginToolSpec {
pub command: String,
pub args: Vec<String>,
pub description: String,
pub params: Value,
}Expand description
One [[tools]] entry from a plugin.toml manifest — see the module doc
comment’s “Manifest schema” section.
Fields§
§command: StringThe executable to spawn (searched on PATH, like any Command::new)
— fixed, manifest-sourced data; never the model’s own input.
args: Vec<String>Fixed extra arguments to command — same trust class as command.
description: StringHuman description surfaced to the model as the tool’s description.
params: ValueJSON Schema for the tool’s input object; {"type": "object"} when
the manifest doesn’t declare one (same default
crate::mcp::McpToolDef::input_schema uses).
Trait Implementations§
Source§impl Clone for PluginToolSpec
impl Clone for PluginToolSpec
Source§fn clone(&self) -> PluginToolSpec
fn clone(&self) -> PluginToolSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginToolSpec
impl Debug for PluginToolSpec
Source§impl PartialEq for PluginToolSpec
impl PartialEq for PluginToolSpec
impl StructuralPartialEq for PluginToolSpec
Auto Trait Implementations§
impl Freeze for PluginToolSpec
impl RefUnwindSafe for PluginToolSpec
impl Send for PluginToolSpec
impl Sync for PluginToolSpec
impl Unpin for PluginToolSpec
impl UnsafeUnpin for PluginToolSpec
impl UnwindSafe for PluginToolSpec
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