File tree Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 5
5
/// modify or extend the implementations as needed, but please do so at your own risk.
6
6
///
7
7
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8
- /// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
9
- /// Generated at : 2025-03-15 18:47:04
8
+ /// Hash : 05530857bb410ecf3a7aa3fb34397385730cbe16
9
+ /// Generated at : 2025-03-18 19:06:14
10
10
/// ----------------------------------------------------------------------------
11
11
///
12
12
/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -1506,6 +1506,19 @@ impl CallToolResult {
1506
1506
}
1507
1507
}
1508
1508
1509
+ impl CallToolRequest {
1510
+ /// Retrieves the name of the tool from the request parameters.
1511
+ ///
1512
+ /// This method provides access to the tool name stored within the `params` field
1513
+ /// of the `CallToolRequest` struct, returning it as a string reference.
1514
+ ///
1515
+ /// # Returns
1516
+ /// A reference to the string containing the tool's name.
1517
+ pub fn tool_name ( & self ) -> & str {
1518
+ & self . params . name
1519
+ }
1520
+ }
1521
+
1509
1522
/// BEGIN AUTO GENERATED
1510
1523
impl :: serde:: Serialize for ClientJsonrpcRequest {
1511
1524
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
Original file line number Diff line number Diff line change 5
5
/// modify or extend the implementations as needed, but please do so at your own risk.
6
6
///
7
7
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8
- /// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
9
- /// Generated at : 2025-03-15 18:47:04
8
+ /// Hash : 05530857bb410ecf3a7aa3fb34397385730cbe16
9
+ /// Generated at : 2025-03-18 19:06:15
10
10
/// ----------------------------------------------------------------------------
11
11
///
12
12
/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -1506,6 +1506,19 @@ impl CallToolResult {
1506
1506
}
1507
1507
}
1508
1508
1509
+ impl CallToolRequest {
1510
+ /// Retrieves the name of the tool from the request parameters.
1511
+ ///
1512
+ /// This method provides access to the tool name stored within the `params` field
1513
+ /// of the `CallToolRequest` struct, returning it as a string reference.
1514
+ ///
1515
+ /// # Returns
1516
+ /// A reference to the string containing the tool's name.
1517
+ pub fn tool_name ( & self ) -> & str {
1518
+ & self . params . name
1519
+ }
1520
+ }
1521
+
1509
1522
/// BEGIN AUTO GENERATED
1510
1523
impl :: serde:: Serialize for ClientJsonrpcRequest {
1511
1524
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
You can’t perform that action at this time.
0 commit comments