📝 Update README documentation for tool installation instructions

This commit is contained in:
2026-04-22 22:27:34 +08:00
parent 81570d0638
commit e0158d1193

View File

@@ -1,12 +1,12 @@
# opencode-custom-tool-demo
> https://opencode.ai/docs/zh-cn/custom-tools/
> - 本地定义:将工具文件放在项目的 .opencode/tools/ 目录中。
> - 全局定义:将工具文件放在 ~/.config/opencode/tools/ 中。
> - 本地定义:将工具文件放在项目的 `.opencode/tools/` 目录中。
> - 全局定义:将工具文件放在 `~/.config/opencode/tools/` 中。
Install tool:
```shell
mkdir -p .opencode/tools/
ln -s demo.ts .opencode/tools/demo.ts
cp demo.ts .opencode/tools/
```