Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/generated_schema/2024_11_05/mcp_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// modify or extend the implementations as needed, but please do so at your own risk.
///
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
/// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
/// Generated at : 2025-03-15 18:47:04
/// Hash : 05530857bb410ecf3a7aa3fb34397385730cbe16
/// Generated at : 2025-03-18 19:06:14
/// ----------------------------------------------------------------------------
///
/// MCP Protocol Version
Expand Down
13 changes: 13 additions & 0 deletions src/generated_schema/2024_11_05/schema_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,19 @@ impl CallToolResult {
}
}

impl CallToolRequest {
/// Retrieves the name of the tool from the request parameters.
///
/// This method provides access to the tool name stored within the `params` field
/// of the `CallToolRequest` struct, returning it as a string reference.
///
/// # Returns
/// A reference to the string containing the tool's name.
pub fn tool_name(&self) -> &str {
&self.params.name
}
}

/// BEGIN AUTO GENERATED
impl ::serde::Serialize for ClientJsonrpcRequest {
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
Expand Down
4 changes: 2 additions & 2 deletions src/generated_schema/draft/mcp_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// modify or extend the implementations as needed, but please do so at your own risk.
///
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
/// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
/// Generated at : 2025-03-15 18:47:04
/// Hash : 05530857bb410ecf3a7aa3fb34397385730cbe16
/// Generated at : 2025-03-18 19:06:15
/// ----------------------------------------------------------------------------
///
/// MCP Protocol Version
Expand Down
13 changes: 13 additions & 0 deletions src/generated_schema/draft/schema_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,19 @@ impl CallToolResult {
}
}

impl CallToolRequest {
/// Retrieves the name of the tool from the request parameters.
///
/// This method provides access to the tool name stored within the `params` field
/// of the `CallToolRequest` struct, returning it as a string reference.
///
/// # Returns
/// A reference to the string containing the tool's name.
pub fn tool_name(&self) -> &str {
&self.params.name
}
}

/// BEGIN AUTO GENERATED
impl ::serde::Serialize for ClientJsonrpcRequest {
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
Expand Down