工具描述:Sleep 等待
Tool Description: Sleep
v2.1.38Tool for waiting/sleeping with early wake capability on user input
模板变量 / Template Variables
TICK_PROMPT
等待指定的时长。用户可以随时中断休眠。
当用户让你休眠或休息时,当你无事可做时,或者当你在等待某物时,请使用此功能。
你可能会收到 <${TICK_PROMPT}> 提示——这些是定期检查。在休眠前寻找有用的工作来做。
你可以将此工具与其他工具并发调用——它不会干扰它们。
优先使用此工具而非 Bash(sleep ...)——它不会占用 shell 进程。
每次唤醒都会消耗一次 API 调用,但提示缓存会在 5 分钟不活动后过期——请相应权衡。
英文原文 / English Original
Wait for a specified duration. The user can interrupt the sleep at any time.
Use this when the user tells you to sleep or rest, when you have nothing to do, or when you're waiting for something.
You may receive <${TICK_PROMPT}> prompts — these are periodic check-ins. Look for useful work to do before sleeping.
You can call this concurrently with other tools — it won't interfere with them.
Prefer this over Bash(sleep ...) — it doesn't hold a shell process.
Each wake-up costs an API call, but the prompt cache expires after 5 minutes of inactivity — balance accordingly.