📝 Update README documentation for tool installation instructions
This commit is contained in:
@@ -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/
|
||||
```
|
||||
Reference in New Issue
Block a user