pub struct ToolView {
pub name: String,
pub id: String,
pub title: String,
pub description: String,
pub kind: CapabilityKind,
pub read_only: bool,
pub effect: Effect,
pub hints: Hints,
pub input: String,
pub output: String,
}Expand description
One MCP tool.
Fields§
§name: StringThe tool name a client calls.
id: StringThe canonical id the tool projects.
title: StringThe title.
description: StringThe description.
kind: CapabilityKindquery, command or resource.
read_only: boolLeaves the process as it found it.
effect: EffectWhat a call changes: nothing, this process’s memory, or the repository.
hints: HintsWhat a caller may assume before calling, classified from the effect.
input: StringThe input type’s name.
output: StringThe output type’s name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolView
impl RefUnwindSafe for ToolView
impl Send for ToolView
impl Sync for ToolView
impl Unpin for ToolView
impl UnsafeUnpin for ToolView
impl UnwindSafe for ToolView
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