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
@@ -7,7 +7,7 @@ import { tool } from "@opencode-ai/plugin";
import {
createEvaluateInEngine262Tool,
toolMetadata,
} from "../../src/agent-tools/evaluateInEngine262";
} from "../../src/agent-tools/evaluateInEngine262.js";
export default tool({
description: toolMetadata.description,
@@ -19,8 +19,8 @@ export default tool({
// Create and execute tool (no external dependencies needed)
const evaluateTool = createEvaluateInEngine262Tool();
const result = await evaluateTool.func({ code });
const result = await evaluateTool({ code });
return result;
return JSON.stringify(result, null, 2);
},
});