fix(.opencode/tools): fix tool call in .opencode/tools

This commit is contained in:
2026-04-14 17:42:17 +05:30
parent 02af2003e2
commit 011d850e65
3 changed files with 9 additions and 9 deletions
@@ -9,7 +9,7 @@ import { tool } from "@opencode-ai/plugin";
import {
createSearchSpecSectionsTool,
toolMetadata,
} from "../../src/agent-tools/searchSpecSections";
} from "../../src/agent-tools/searchSpecSections.js";
export default tool({
description: toolMetadata.description,
@@ -32,8 +32,8 @@ export default tool({
// Create and execute tool
const searchTool = createSearchSpecSectionsTool(table, embeddings);
const result = await searchTool.func({ query });
const result = await searchTool({ query });
return result;
return JSON.stringify(result, null, 2);
},
});