Skip to main content

工具集

可用工具集

Hermes 提供以下工具集:

开发工具

  • terminal - 执行 shell 命令
  • file - 文件读写操作
  • code - 代码执行和调试

网络工具

  • web - 网络搜索和内容提取
  • browser - 浏览器自动化

生产力工具

  • todo - 任务管理
  • calendar - 日程管理
  • email - 邮件操作

平台工具

  • feishu - 飞书集成
  • dingtalk - 钉钉集成
  • github - GitHub 集成

启用/禁用工具

在配置中启用

tools:
enabled:
- terminal
- browser
- file

运行时启用

hermes run --tools terminal,browser "your task"

工具权限

某些工具需要特殊权限:

tools:
permissions:
terminal:
allow_sudo: false
allowed_commands:
- npm
- git

自定义工具

创建自定义工具:

hermes tool create my-tool

编辑 ~/.hermes/tools/my-tool.js

module.exports = {
name: 'my-tool',
description: '工具描述',
execute: async (params) => {
// 实现工具逻辑
return result;
}
};