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
@@ -8,7 +8,7 @@ import { tool } from "@opencode-ai/plugin";
import {
createGetSectionContentTool,
toolMetadata,
} from "../../src/agent-tools/getSectionContent";
} from "../../src/agent-tools/getSectionContent.js";
export default tool({
description: toolMetadata.description,
@@ -30,8 +30,8 @@ export default tool({
// Create and execute tool
const contentTool = createGetSectionContentTool(table);
const result = await contentTool.func({ sectionId, recursive });
const result = await contentTool({ sectionId, recursive });
return result;
return JSON.stringify(result, null, 2);
},
});