Skip to content

@agenticforge/tools-builtin

npm

Ready-to-use built-in tools — search, memory, notes, RAG, and terminal.

Installation

bash
npm install @agenticforge/tools-builtin

Available tools

ToolDescription
SearchToolWeb search: Tavily, SerpApi, DuckDuckGo, SearXNG, Perplexity
MemoryToolRead/write agent memory via MemoryManager
NoteToolStructured note CRUD with file locking
RagToolDocument indexing and semantic Q&A
TerminalToolSafe terminal commands via allowlist

SearchTool

ts
import {SearchTool} from "@agenticforge/tools-builtin";

// Auto-selects best available backend
const search = new SearchTool({backend: "hybrid"});

// Explicit Tavily
const tavily = new SearchTool({
  backend: "tavily",
  tavilyKey: process.env.TAVILY_API_KEY,
});

const result = await search.run({input: "latest AI agent frameworks"});

NoteTool

ts
import {NoteTool} from "@agenticforge/tools-builtin";

const notes = new NoteTool({workspace: "./agent-notes"});

await notes.run({
  action: "create",
  title: "Task Status",
  content: "Step 1 complete. Next: run evaluation.",
  note_type: "task_state",
});

const list = await notes.run({action: "list"});

RagTool

ts
import {RagTool} from "@agenticforge/tools-builtin";

const rag = new RagTool({knowledgeBasePath: "./docs"});

await rag.run({action: "add_document", file_path: "./guide.md"});

const answer = await rag.run({
  action: "ask",
  question: "How do I configure the memory system?",
});
console.log(answer);

TerminalTool

ts
import {TerminalTool} from "@agenticforge/tools-builtin";

const terminal = new TerminalTool({workspace: "/safe/dir"});
const output = await terminal.run({command: "ls -la"});

WARNING

TerminalTool uses an allowlist of safe commands. rm, curl, wget and other destructive commands are blocked by default.

Released under the CC BY-NC-SA 4.0 License.