diff options
| author | Jacob MacDonald <[email protected]> | 2025-08-20 13:10:02 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-20 20:10:02 +0000 |
| commit | 1738d407456aec9ab7733374a4709cff6d59d12d (patch) | |
| tree | 0671de9960c9ef3fc3e1ddd002d14e1748bc62a8 /packages/core/src/tools/tool-registry.test.ts | |
| parent | 4642de2a5ceaf264ce3238accc1142aec4661db4 (diff) | |
return the JSON stringified parameters from getDescription for MCP tools and Discovered tools (#6655)
Diffstat (limited to 'packages/core/src/tools/tool-registry.test.ts')
| -rw-r--r-- | packages/core/src/tools/tool-registry.test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/core/src/tools/tool-registry.test.ts b/packages/core/src/tools/tool-registry.test.ts index cccf011f..6db60377 100644 --- a/packages/core/src/tools/tool-registry.test.ts +++ b/packages/core/src/tools/tool-registry.test.ts @@ -332,4 +332,14 @@ describe('ToolRegistry', () => { expect(discoverSpy).toHaveBeenCalled(); }); }); + + describe('DiscoveredToolInvocation', () => { + it('should return the stringified params from getDescription', () => { + const tool = new DiscoveredTool(config, 'test-tool', 'A test tool', {}); + const params = { param: 'testValue' }; + const invocation = tool.build(params); + const description = invocation.getDescription(); + expect(description).toBe(JSON.stringify(params)); + }); + }); }); |
