pub struct CoreMcpTool { /* private fields */ }Expand description
A tool in the tool registry.
Implementations§
Source§impl CoreMcpTool
impl CoreMcpTool
Sourcepub fn list() -> Array<CoreMcpTool>
pub fn list() -> Array<CoreMcpTool>
Every registered tool, sorted by name.
pub fn from_name(name: &str) -> Option<Ref<Self>>
pub fn name(&self) -> String
pub fn title(&self) -> String
pub fn description(&self) -> String
pub fn input_schema(&self) -> Value
pub fn output_schema(&self) -> Option<Value>
pub fn scope(&self) -> McpToolScope
pub fn annotations(&self) -> McpToolAnnotations
Trait Implementations§
Source§impl CoreArrayProvider for CoreMcpTool
impl CoreArrayProvider for CoreMcpTool
Source§impl Debug for CoreMcpTool
impl Debug for CoreMcpTool
impl Eq for CoreMcpTool
Source§impl Hash for CoreMcpTool
impl Hash for CoreMcpTool
Source§impl PartialEq for CoreMcpTool
impl PartialEq for CoreMcpTool
Source§fn eq(&self, other: &CoreMcpTool) -> bool
fn eq(&self, other: &CoreMcpTool) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Send for CoreMcpTool
impl StructuralPartialEq for CoreMcpTool
impl Sync for CoreMcpTool
Source§impl ToOwned for CoreMcpTool
impl ToOwned for CoreMcpTool
Source§type Owned = Ref<CoreMcpTool>
type Owned = Ref<CoreMcpTool>
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl Freeze for CoreMcpTool
impl RefUnwindSafe for CoreMcpTool
impl Unpin for CoreMcpTool
impl UnsafeUnpin for CoreMcpTool
impl UnwindSafe for CoreMcpTool
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