> For the complete documentation index, see [llms.txt](https://tinyhumans.gitbook.io/openhuman/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tinyhumans.gitbook.io/openhuman/zh/gong-neng/native-tools/system-and-utilities.md).

# 系统与实用工具

Shell、node、SQL、当前时间、推送通知——完善工具箱的那些小工具。

兜底通用工具族。代理在补全任务时会用到的小而精的工具。

## 该工具族中的工具

| 工具                | 功能                                                                                |
| ----------------- | --------------------------------------------------------------------------------- |
| `shell`           | 运行 shell 命令。输出有界，并捕获退出码。                                                          |
| `node_exec`       | 运行一段 Node.js 代码——适合一次性脚本任务。                                                       |
| `npm_exec`        | 运行一个 `npm`/`pnpm`/`yarn` 脚本。                                                      |
| `python_exec`     | 运行一段 Python 3 代码或 `.py` 脚本——用于 Python 的一次性脚本任务。                                   |
| `current_time`    | 获取任意时区的当前时间，并提供格式化选项。                                                             |
| `schedule`        | 一次性“在时间 T 执行一次”——对于重复任务，请参见 [Cron](/openhuman/zh/gong-neng/native-tools/cron.md). |
| `pushover`        | 向你的设备发送推送通知。                                                                      |
| `lsp`             | 查询语言服务器（定义、引用、诊断）。                                                                |
| `workspace_state` | 检查当前工作区——打开的文件、最近的编辑、环境。                                                          |
| `proxy_config`    | 读取或更改出站请求的代理配置。                                                                   |
| `tool_stats`      | 自我反思——本次会话中使用了哪些工具以及使用频率。                                                         |

## 适合做什么

* 工作流中那些不适合更丰富工具族的部分。
* “只要运行这个命令并告诉我它输出了什么。”
* 具备时间感知的行为（“用户现在那边几点？”），而不把时区假设写死到提示中。
* 让代理 *通知你* 在完成一个长时间运行的任务时。

## 另请参见

* [Coder](/openhuman/zh/gong-neng/native-tools/coder.md) ——对于文件系统密集型工作，优先使用专用工具而不是 `shell`.
* [Cron 与调度](/openhuman/zh/gong-neng/native-tools/cron.md) ——用于任何重复性任务。
