summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/agent
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-25 14:42:21 +0200
committerKujtim Hoxha <[email protected]>2025-04-25 14:42:47 +0200
commit170c7ad67abd840fd89aef3c79b5eff32e3aec5c (patch)
treed6d869c46bab7ddfbe6ca2957360a90d74f1509d /internal/llm/agent
parent7a62ab7675dd042266611205c43e9869a2da1664 (diff)
downloadopencode-170c7ad67abd840fd89aef3c79b5eff32e3aec5c.tar.gz
opencode-170c7ad67abd840fd89aef3c79b5eff32e3aec5c.zip
small fixes
Diffstat (limited to 'internal/llm/agent')
-rw-r--r--internal/llm/agent/mcp-tools.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/agent/mcp-tools.go b/internal/llm/agent/mcp-tools.go
index d54f04a9c..237560641 100644
--- a/internal/llm/agent/mcp-tools.go
+++ b/internal/llm/agent/mcp-tools.go
@@ -58,7 +58,7 @@ func runTool(ctx context.Context, c MCPClient, toolName string, input string) (t
toolRequest := mcp.CallToolRequest{}
toolRequest.Params.Name = toolName
var args map[string]any
- if err = json.Unmarshal([]byte(input), &input); err != nil {
+ if err = json.Unmarshal([]byte(input), &args); err != nil {
return tools.NewTextErrorResponse(fmt.Sprintf("error parsing parameters: %s", err)), nil
}
toolRequest.Params.Arguments = args