Skip to content

Commit d36b141

Browse files
add getTool for AsyncMcpToolCallback in order to get toolName witch has been prefixed in getToolDefinition
1 parent 7e8482e commit d36b141

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mcp/common/src/main/java/org/springframework/ai/mcp/AsyncMcpToolCallback.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ public ToolDefinition getToolDefinition() {
9595
.build();
9696
}
9797

98+
public Tool getTool() {
99+
return this.tool;
100+
}
101+
98102
/**
99103
* Executes the tool with the provided input asynchronously.
100104
* <p>

0 commit comments

Comments
 (0)