summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/mcp-tool.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src/tools/mcp-tool.test.ts')
-rw-r--r--packages/core/src/tools/mcp-tool.test.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/core/src/tools/mcp-tool.test.ts b/packages/core/src/tools/mcp-tool.test.ts
index 3a8c10c4..d5e4eee8 100644
--- a/packages/core/src/tools/mcp-tool.test.ts
+++ b/packages/core/src/tools/mcp-tool.test.ts
@@ -743,4 +743,13 @@ describe('DiscoveredMCPTool', () => {
}
});
});
+
+ describe('DiscoveredMCPToolInvocation', () => {
+ it('should return the stringified params from getDescription', () => {
+ const params = { param: 'testValue', param2: 'anotherOne' };
+ const invocation = tool.build(params);
+ const description = invocation.getDescription();
+ expect(description).toBe('{"param":"testValue","param2":"anotherOne"}');
+ });
+ });
});