summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/zh-cn/custom-tools.mdx
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-11 18:51:27 -0600
committerAdam <[email protected]>2026-02-11 18:51:50 -0600
commitaea68c386a4f64cf718c3eeee9dffec8409ee6b0 (patch)
treebdf06cb3372c6c48c97c43b41e53e514888a52b3 /packages/web/src/content/docs/zh-cn/custom-tools.mdx
parent8eea53a41e92257d1a4ad6653d0d2930465bf34a (diff)
downloadopencode-aea68c386a4f64cf718c3eeee9dffec8409ee6b0.tar.gz
opencode-aea68c386a4f64cf718c3eeee9dffec8409ee6b0.zip
fix(docs): locale translations for nav elements and headings
Diffstat (limited to 'packages/web/src/content/docs/zh-cn/custom-tools.mdx')
-rw-r--r--packages/web/src/content/docs/zh-cn/custom-tools.mdx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/web/src/content/docs/zh-cn/custom-tools.mdx b/packages/web/src/content/docs/zh-cn/custom-tools.mdx
index 503b1e1df..211df7c01 100644
--- a/packages/web/src/content/docs/zh-cn/custom-tools.mdx
+++ b/packages/web/src/content/docs/zh-cn/custom-tools.mdx
@@ -13,7 +13,7 @@ description: 创建 LLM 可以在 opencode 中调用的工具。
---
-### Location
+### 位置
它们可以定义为:
@@ -22,7 +22,7 @@ description: 创建 LLM 可以在 opencode 中调用的工具。
---
-### Structure
+### 结构
创建工具最简单的方法是使用 `tool()` 帮助程序,它提供类型安全和验证。
@@ -79,7 +79,7 @@ export const multiply = tool({
---
-### Arguments
+### 参数
您可以使用 `tool.schema`(即 [Zod](https://zod.dev))来定义参数类型。
@@ -108,7 +108,7 @@ export default {
---
-### Context
+### 上下文
工具接收有关当前会话的上下文: