pub struct CallToolRequestParams {
pub arguments: Option<Map<String, Value>>,
pub meta: Option<CallToolMeta>,
pub name: String,
pub task: Option<TaskMetadata>,
}Expand description
Parameters for a tools/call request.
JSON schema
{
"description": "Parameters for a tools/call request.",
"type": "object",
"required": [
"name"
],
"properties": {
"_meta": {
"description": "See [General fields: _meta](https://modelcontextprotocol.io/specification/2025-11-25/basic/index#meta) for notes on _meta usage.",
"type": "object",
"properties": {
"progressToken": {
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.",
"$ref": "#/$defs/ProgressToken"
}
},
"additionalProperties": {}
},
"arguments": {
"description": "Arguments to use for the tool call.",
"type": "object",
"additionalProperties": {}
},
"name": {
"description": "The name of the tool.",
"type": "string"
},
"task": {
"description": "If specified, the caller is requesting task-augmented execution for this request.\nThe request will return a CreateTaskResult immediately, and the actual result can be\nretrieved later via tasks/result.\n\nTask augmentation is subject to capability negotiation - receivers MUST declare support\nfor task augmentation of specific request types in their capabilities.",
"$ref": "#/$defs/TaskMetadata"
}
}
}Fields§
§arguments: Option<Map<String, Value>>Arguments to use for the tool call.
meta: Option<CallToolMeta>§name: StringThe name of the tool.
task: Option<TaskMetadata>If specified, the caller is requesting task-augmented execution for this request. The request will return a CreateTaskResult immediately, and the actual result can be retrieved later via tasks/result. Task augmentation is subject to capability negotiation - receivers MUST declare support for task augmentation of specific request types in their capabilities.
Trait Implementations§
Source§impl Clone for CallToolRequestParams
impl Clone for CallToolRequestParams
Source§fn clone(&self) -> CallToolRequestParams
fn clone(&self) -> CallToolRequestParams
Returns a duplicate of the value. Read more
1.0.0 · 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 CallToolRequestParams
impl Debug for CallToolRequestParams
Source§impl<'de> Deserialize<'de> for CallToolRequestParams
impl<'de> Deserialize<'de> for CallToolRequestParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CallToolRequestParams
impl RefUnwindSafe for CallToolRequestParams
impl Send for CallToolRequestParams
impl Sync for CallToolRequestParams
impl Unpin for CallToolRequestParams
impl UnwindSafe for CallToolRequestParams
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