return the JSON stringified parameters from getDescription for MCP tools and Discovered tools (#6655)

This commit is contained in:
Jacob MacDonald
2025-08-20 13:10:02 -07:00
committed by GitHub
parent 4642de2a5c
commit 1738d40745
5 changed files with 24 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { safeJsonStringify } from '../utils/safeJsonStringify.js';
import {
BaseDeclarativeTool,
BaseToolInvocation,
@@ -152,7 +153,7 @@ class DiscoveredMCPToolInvocation extends BaseToolInvocation<
}
getDescription(): string {
return this.displayName;
return safeJsonStringify(this.params);
}
}