sgr-agent-tools
11 reusable file-system tools for sgr-agent based AI agents.
Generic over FileBackend trait — implement it for your runtime (RPC, local fs, in-memory mock) and get battle-tested tools out of the box.
Tools
| # | Tool | Category | Description |
|---|---|---|---|
| 1 | ReadTool |
observe | Read file with trust metadata |
| 2 | WriteTool |
act | Write file with JSON auto-repair |
| 3 | DeleteTool |
act | Delete files (single or batch) |
| 4 | SearchTool |
observe | Smart search: query expansion, fuzzy, auto-expand |
| 5 | ListTool |
observe | List directory contents |
| 6 | TreeTool |
observe | Directory tree structure |
| 7 | EvalTool |
compute | JavaScript via Boa engine (feature eval) |
| 8 | ReadAllTool |
observe | Batch read all files in directory |
| 9 | MkDirTool |
act | Create directory (deferred) |
| 10 | MoveTool |
act | Move/rename file (deferred) |
| 11 | FindTool |
observe | Find files by name pattern (deferred) |
Usage
use Arc;
use ;
// Implement FileBackend for your runtime
;
// Create tools
let backend = new;
let read = ReadTool;
let write = WriteTool;
let search = SearchTool;
Or via sgr-agent with the tools feature:
[]
= { = "0.6", = ["tools"] }
# with JS eval:
= { = "0.6", = ["tools-eval"] }
use ;
Features
eval— enablesEvalTool(addsboa_enginedependency, ~5MB)
Architecture
sgr-agent-core ← minimal: Tool trait, AgentContext, schema
↑ ↑
sgr-agent-tools sgr-agent
(11 tools) (framework, re-exports tools via feature "tools")