pub struct CallToolParams {
pub name: String,
pub arguments: Value,
pub input_responses: Option<BTreeMap<String, InputResponse>>,
pub request_state: Option<String>,
pub meta: Option<RequestMeta>,
pub task: Option<TaskRequestParams>,
}Expand description
Parameters for invoking a tool through tools/call.
Fields§
§name: StringProgrammatic name of the tool to invoke.
arguments: ValueArguments validated against the tool’s input schema; defaults to JSON null.
input_responses: Option<BTreeMap<String, InputResponse>>SEP-2322: responses to the server’s InputRequests from a prior
input_required result, sent on retry of the original request.
request_state: Option<String>SEP-2322: opaque request state echoed back from a prior input_required
result.
meta: Option<RequestMeta>Request metadata including progress token
task: Option<TaskRequestParams>Legacy 2025-11-25 task parameters for async execution.
This field is invalid on the 2026-07-28 protocol.
Trait Implementations§
Source§impl Clone for CallToolParams
impl Clone for CallToolParams
Source§fn clone(&self) -> CallToolParams
fn clone(&self) -> CallToolParams
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 CallToolParams
impl Debug for CallToolParams
Source§impl<'de> Deserialize<'de> for CallToolParams
impl<'de> Deserialize<'de> for CallToolParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallToolParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallToolParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CallToolParams
impl Serialize for CallToolParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CallToolParams
impl RefUnwindSafe for CallToolParams
impl Send for CallToolParams
impl Sync for CallToolParams
impl Unpin for CallToolParams
impl UnsafeUnpin for CallToolParams
impl UnwindSafe for CallToolParams
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