@brainst0rm/tools
v0.13.0
Published
42+ built-in tools for file editing, shell, git, GitHub, web, and more
Maintainers
Readme
@brainst0rm/tools
42 built-in tools with Zod input schemas, permission levels, and consistent { ok, data, error } output.
Key Exports
createDefaultToolRegistry()— Register all 42 built-in toolsdefineTool()— Define a new tool with schema and execute functionToolRegistry— Tool registration and permission-wrapped AI SDK conversionCheckpointManager— File snapshots for undo supportSessionFileTracker— Track file reads/writes per sessionToolHealthTracker— Track tool success/failure rates
Tool Categories
- Filesystem (8), Shell (3), Git (6), GitHub (2), Web (2), Tasks (3)
- Agent (6), Planning (1), Transactions (3), BrainstormRouter (8)
See docs/tools.md for full reference.
Adding a Tool
import { z } from "zod";
import { defineTool } from "../base.js";
export const myTool = defineTool({
name: "my_tool",
description: "What this tool does",
permission: "confirm",
inputSchema: z.object({ param: z.string() }),
async execute({ param }) {
return { ok: true, data: { result: "done" } };
},
});