Tools Module¶
Built-in tools for agent use.
Available Tools¶
| Tool | Description |
|---|---|
| Filesystem | File operations |
| Bash | Shell commands |
| Glob | Pattern matching |
| Grep | Content search |
| ToolRegistry | Tool management |
Quick Example¶
from mamba_agents import Agent
from mamba_agents.tools import (
read_file,
write_file,
list_directory,
glob_search,
grep_search,
run_bash,
)
agent = Agent(
"gpt-4o",
tools=[read_file, write_file, glob_search, grep_search, run_bash],
)
Tool Categories¶
File Operations¶
read_file- Read file contentswrite_file- Write to fileappend_file- Append to filelist_directory- List directoryfile_info- Get file metadatadelete_file- Delete filemove_file- Move/rename filecopy_file- Copy file
Search¶
glob_search- Find files by patterngrep_search- Search file contents
Shell¶
run_bash- Execute commands