Hermes Agent Toolset
Tools are the only channel through which the Hermes Agent interacts with the outside world -- reading and writing files, executing commands, searching the web, generating images; all capabilities are exposed through tools.
Hermes ships with 70+ tools divided into 28 toolsets. This chapter analyzes each toolset's core tools, parameters, and best practices one by one.
Tool System Architecture
Before diving into specific tools, first understand how tools are organized.
Hermes manages tools with a three-layer structure:
工具(Tool) ← 单个可调用函数,如 read_file、web_search
└── 工具集(Toolset) ← 相关工具的逻辑分组,如 file、web
└── 平台配置 ← 哪个平台加载哪些工具集
Key design: disabling a toolset makes its tools disappear entirely from the system prompt -- not merely uncallable, but the Agent does not even know they exist. This both saves Tokens and prevents the Agent from misusing tools it should not use.
Ways to manage toolsets:
# TUI 交互式管理(推荐)
hermes tools
# Command Line Management
hermes tools list # 列出所有工具及启用状态
hermes tools enable browser # 启用指定工具集
hermes tools disable audio # 禁用指定工具集
Configure in config.yaml:
# File path: ~/.hermes/config.yaml
# Specify the enabled toolset by platform
platform_toolsets:
cli:
- hermes-cli # CLI 核心工具集
- file
- terminal
- web
- memory
- skills
In the desktop app, in the Skills & Tools menu on the left:

Tools can also be managed on the dashboard, in the left-hand skills menu:

File and System Toolsets
These toolsets let the Agent operate the local file system, execute commands, and manage processes.
file -- file operations
The most basic toolset; almost every Agent task depends on it to read and write files.
| Tool | Function | Key parameters |
|---|---|---|
| read_file | Read file contents | file_path (required), offset (start line), limit (max lines) |
| write_file | Create or overwrite a file | file_path (required), content (required) |
| edit_file | Precisely replace text in a file | file_path, old_string, new_string, replace_all |
| list_dir | List directory contents | path (required), recursive (whether to recurse) |
| search_files | Search by filename pattern | pattern (required, supports glob), path (search root directory) |
| search_content | Search for text within file contents | pattern (required, supports regex), path, file_types |
How edit_file works: it uses exact substring matching to locate the modification position. The Agent provides old_string (text that actually exists in the file), the tool finds it and replaces it with new_string. If old_string matches multiple places, set replace_all: true to replace all occurrences.
edit_file is the Agent's most commonly used file modification method -- it is safer than write_file, because if old_string cannot be found, the operation fails with an error and the file is not accidentally overwritten.
terminal -- Shell command execution
Lets the Agent execute Shell commands in the specified backend environment.
| Tool | Function | Key parameters |
|---|---|---|
| run_command | Execute a single Shell command | command (required), workdir (working directory), timeout (timeout in milliseconds) |
| run_script | Execute a multi-line Shell script | script (required, multi-line script content), workdir, timeout |
Commands execute in the configured terminal backend -- local (this machine), docker (container), ssh (remote), etc.
Execution results include stdout, stderr, and the exit code; the Agent can use this information to determine whether the command succeeded.
code -- sandboxed code execution
Execute code snippets in an isolated sandbox, supporting Python, JavaScript, and Bash.
| Tool | Function | Key parameters |
|---|---|---|
| execute_code | Run code in the sandbox | language (python/js/bash), code (required), timeout |
Difference from terminal: the code tool runs in an independent sandbox and cannot access the file system (unless explicitly mounted), suitable for code that does not need file interaction such as algorithm verification and data processing.
computer -- desktop GUI automation
Control the desktop environment's mouse, keyboard, and screenshots.
| Tool | Function |
|---|---|
| screenshot | Capture the screen or a specified region |
| click | Click the mouse at specified coordinates |
| type | Simulate keyboard text input |
| scroll | Scroll the mouse wheel |
| move | Move the mouse to specified coordinates |
The computer toolset is mainly used for GUI application testing and automation. If your use case does not involve desktop applications, you can disable it to save Tokens.
Web and Content Toolsets
These toolsets let the Agent search the internet, extract web content, and automate browser operations.
web -- web search and content extraction
The Agent's main channel for obtaining external information.
| Tool | Function | Key parameters |
|---|---|---|
| web_search | Search internet content | query (required), num_results (number of results) |
| web_extract | Extract the body content of a specified URL | url (required), extract_mode (auto/text/markdown) |
web_search returns a list of search results (title + URL + snippet); the Agent usually searches first, then calls web_extract on pages of interest for detailed content.
A search API must be configured to use it. Multiple providers are supported:
Example
File path: ~/.hermes/config.yaml
Configure the web search backend
web
:
search_provider
:
firecrawl
or brave, serpapi, tavily
Set the corresponding API Key in .env
FIRECRAWL_API_KEY=fc-...
or BRAVE_API_KEY=BS...
browser -- browser automation
Full browser control -- navigation, clicking, form filling, screenshots, operating web pages like a human.
| Tool | Function | Key parameters |
|---|---|---|
| navigate | Navigate to a specified URL | url (required) |
| click | Click a page element | selector (CSS selector or text description) |
| fill_form | Fill in form fields | fields (mapping from field name to value) |
| screenshot | Capture the current page | full_page (whether to capture the full page) |
| extract | Extract structured data from the page | selector, format (json/text) |
| execute_js | Execute JavaScript in the page | code (required) |
The browser toolset requires Playwright or a cloud browser backend.
Starting a browser instance for the browser toolset consumes extra resources. If you only need to extract web page text content, prefer web_extract over browser extract -- the former is a lightweight HTTP request, while the latter requires launching a full browser.
vision -- image analysis
Lets the Agent "understand" image content.
| Tool | Function | Key parameters |
|---|---|---|
| analyze_image | Analyze image content and generate a description | image_path or image_url (required), question (optional, a specific question about the image) |
| describe_image | Generate a detailed text description of the image | image_path or image_url (required) |
The vision tool sends the image to a vision-capable LLM (such as claude-sonnet-4-6, gpt-4o), which recognizes and describes the image content.
audio -- audio processing
Speech-to-text and text-to-speech.
| Tool | Function | Key parameters |
|---|---|---|
| transcribe | Convert an audio file to text | audio_path (required), language (optional) |
| tts | Convert text to a speech file | text (required), voice (voice selection), provider |
Agent Capability Toolsets
These toolsets manage the Agent's own state -- memory, skills, and sub-Agent collaboration.
memory -- memory management
Read and write persistent memory and search cross-session history.
| Tool | Function | Key parameters |
|---|---|---|
| memory | Manage persistent memory (add/delete/modify) | action (add/replace/remove), target (memory/user), content |
| session_search | Full-text search of historical sessions | query (required, supports FTS5 syntax) |
The memory tool has no read operation -- persistent memory is already injected into the system prompt at session start, so the Agent does not need to read it separately.
skills -- skill management
Load and manage reusable workflow skills.
| Tool | Function | Key parameters |
|---|---|---|
| skills_list | List all installed skills and their descriptions | None (automatically invoked at session start) |
| skill_view | Load the full content of a skill | name (required), path (optional, load references sub-file) |
| skill_manage | Create, modify, or delete skill files | action, name, content |
delegation -- sub-Agent delegation
Spawn sub-Agents to execute tasks in parallel.
| Tool | Function | Key parameters |
|---|---|---|
| spawn_agent | Create a single sub-Agent to execute a task | prompt (required), model (optional) |
| spawn_parallel | Create multiple sub-Agents in parallel | tasks (required, task list) |
Sub-Agents have independent context windows and do not pollute the main Agent's conversation history. After execution they return a result summary.
kanban -- multi-Agent Kanban
A structured multi-Agent collaboration system, requires explicit enabling (all/* does not auto-enable it either).
| Tool | Function |
|---|---|
| task_create | Create a new task in the Kanban |
| task_update | Update task status (todo/in_progress/done) |
| task_list | List all tasks for the tenant |
| task_assign | Assign a task to a specified worker Agent |
Kanban is the core mechanism for multi-Profile collaboration -- one orchestrator Profile creates tasks, and multiple worker Profiles claim and execute them. This requires the gateways of multiple Profiles to be running simultaneously.
Media Creation Toolsets
These toolsets usually require a Nous Portal subscription or the corresponding third-party API Key.
image_gen -- AI image generation
Generate images from text descriptions, supporting 9 models.
| Tool | Function | Key parameters |
|---|---|---|
| generate_image | Generate an image from a Prompt | prompt (required), model (flux/gpt-image/ideogram, etc.), size, style |
tts -- text-to-speech
TTS functionality independent of the audio toolset, offering a richer choice of providers.
| Tool | Function |
|---|---|
| text_to_speech | Convert text to a speech file |
| list_voices | List available voice timbres |
Custom Toolsets
You can combine existing toolsets into a project-specific custom toolset:
Example
File path: ~/.hermes/config.yaml
Define a project-specific toolset combination
custom_toolsets
:
Tools needed for a data science project
data-science
:
- file
- terminal
- code
- web
A pure writing project only needs file operations
writing
:
- file
- web
- memory
An operations project needs terminal + file, not the browser
devops
:
- file
- terminal
- memory
Specify at use time via the --toolsets parameter:
Example
Use custom toolsets at startup
hermes
--toolsets
data-science chat
or set as default in the Profile configuration
coder config
set
toolsets data-science
Tool Call Flow
Understanding the complete flow of one tool call helps you understand the Agent's behavior and troubleshoot issues.
A complete tool call goes through the following steps:
- The LLM decides to call a tool while generating a reply, outputting the tool name and parameters
- tool_request Middleware executes (can modify parameters)
- Approval check -- if the tool is a dangerous operation, decide whether to pop up a confirmation based on approvals.mode
- The tool actually executes
- tool_execution Middleware executes (can modify the result)
- post_tool_call Hook records telemetry data
- The execution result is returned to the LLM, which continues generating the reply
If your Middleware modifies tool parameters, the modified parameters are the input for approval and actual execution. If you short-circuit execution in Middleware (returning a custom result), the actual tool does not run.
Tool Usage Statistics
Knowing which tools are frequently used helps optimize toolset configuration and Token consumption.
View tool call statistics for this session within the session:
Example
View tool usage statistics for this session
/
usage
Example output:
Token usage: input 12,340 | output 5,678 | total 18,018
Tool calls: read_file (15 times) | edit_file (8 times) |
terminal (3 times) | web_search (2 times)
In batch processing scenarios, the statistics.json file records more detailed statistics:
Example
// File path: data/my_first_run/statistics.json
{
"total_tool_calls": 1523,
"tools": {
"read_file": {"count": 520, "success": 510, "failure": 10},
"edit_file": {"count": 380, "success": 375, "failure": 5},
"terminal": {"count": 290, "success": 270, "failure": 20},
"web_search": {"count": 180, "success": 178, "failure": 2}
},
"avg_tool_calls_per_turn": 2.4,
"most_common_tool_sequence": [
"read_file", "edit_file", "terminal"
]
}