From 8357afb46fd4cb93897f4ccf7e73a85aa75376d1 Mon Sep 17 00:00:00 2001 From: Zhe Yu Date: Wed, 23 Jul 2025 21:01:35 +0800 Subject: [PATCH 1/2] fix(nvim): Add empty parameters to ls_tool --- lua/vectorcode/integrations/codecompanion/ls_tool.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/vectorcode/integrations/codecompanion/ls_tool.lua b/lua/vectorcode/integrations/codecompanion/ls_tool.lua index b3658ac2..c4f013ca 100644 --- a/lua/vectorcode/integrations/codecompanion/ls_tool.lua +++ b/lua/vectorcode/integrations/codecompanion/ls_tool.lua @@ -63,6 +63,7 @@ return function(opts) Retrieve a list of projects accessible via the VectorCode tools. Where relevant, use paths from this tool as the `project_root` parameter in other vectorcode tools. ]], + parameters = { type = "object" }, }, }, output = { From e1c1891c32b4d2e048855cd2ed19c4b2d95cef87 Mon Sep 17 00:00:00 2001 From: Zhe Yu Date: Fri, 1 Aug 2025 12:40:49 +0800 Subject: [PATCH 2/2] fix(nvim): Add empty properties to ls_tool parameters --- lua/vectorcode/integrations/codecompanion/ls_tool.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/vectorcode/integrations/codecompanion/ls_tool.lua b/lua/vectorcode/integrations/codecompanion/ls_tool.lua index c4f013ca..092aea50 100644 --- a/lua/vectorcode/integrations/codecompanion/ls_tool.lua +++ b/lua/vectorcode/integrations/codecompanion/ls_tool.lua @@ -63,7 +63,13 @@ return function(opts) Retrieve a list of projects accessible via the VectorCode tools. Where relevant, use paths from this tool as the `project_root` parameter in other vectorcode tools. ]], - parameters = { type = "object" }, + parameters = { + -- make anthropic models happy. + type = "object", + properties = vim.empty_dict(), + required = {}, + additionalProperties = false, + }, }, }, output = {