316 B
316 B
opencode-custom-tool-demo
https://opencode.ai/docs/zh-cn/custom-tools/
- 本地定义:将工具文件放在项目的
.opencode/tools/目录中。- 全局定义:将工具文件放在
~/.config/opencode/tools/中。
Install tool:
mkdir -p .opencode/tools/
cp demo.ts .opencode/tools/