From 6bd70b7ced92949c045bcc3d28849fb706b3db7a Mon Sep 17 00:00:00 2001 From: wucm667 Date: Fri, 5 Jun 2026 14:42:22 +0800 Subject: [PATCH] docs: fix Bash timeout unit and document background cap --- docs/en/reference/tools.md | 4 ++-- docs/zh/reference/tools.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/reference/tools.md b/docs/en/reference/tools.md index d7874abdb..2b05a932f 100644 --- a/docs/en/reference/tools.md +++ b/docs/en/reference/tools.md @@ -39,8 +39,8 @@ File tools handle reading, writing, and searching the local filesystem — the f - `command` (required): the shell command to execute - `cwd`: working directory -- `timeout`: timeout in milliseconds; foreground default is 60 seconds, maximum is 5 minutes -- `run_in_background`: whether to run as a background task; background tasks default to a 10-minute timeout +- `timeout`: timeout in seconds; foreground default is 60 seconds, maximum is 5 minutes +- `run_in_background`: whether to run as a background task; background tasks default to a 10-minute timeout, maximum is 24 hours - `description`: background task description; required when `run_in_background=true` - `disable_timeout`: whether to remove the timeout limit for background tasks diff --git a/docs/zh/reference/tools.md b/docs/zh/reference/tools.md index 2a3118d68..4c24906ff 100644 --- a/docs/zh/reference/tools.md +++ b/docs/zh/reference/tools.md @@ -39,8 +39,8 @@ - `command`(必填):要执行的 Shell 命令 - `cwd`:工作目录 -- `timeout`:超时时间(毫秒);前台默认 60 秒、最长 5 分钟 -- `run_in_background`:是否以后台任务运行;后台默认 10 分钟超时 +- `timeout`:超时时间(秒);前台默认 60 秒、最长 5 分钟 +- `run_in_background`:是否以后台任务运行;后台默认 10 分钟超时、最长 24 小时 - `description`:后台任务描述,`run_in_background=true` 时必填 - `disable_timeout`:后台任务是否取消超时限制