Web fetch tool (#31)

* Adding a web fetch tool.
This commit is contained in:
Allen Hutchison
2025-04-18 13:20:39 -07:00
committed by GitHub
parent 56d4a35d05
commit 3ed61f1ff2
2 changed files with 177 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import { GlobTool } from './tools/glob.tool.js';
import { EditTool } from './tools/edit.tool.js';
import { TerminalTool } from './tools/terminal.tool.js';
import { WriteFileTool } from './tools/write-file.tool.js';
import { WebFetchTool } from './tools/web-fetch.tool.js';
import { globalConfig } from './config/config.js';
async function main() {
@@ -77,6 +78,7 @@ function registerTools(targetDir: string) {
const editTool = new EditTool(targetDir);
const terminalTool = new TerminalTool(targetDir);
const writeFileTool = new WriteFileTool(targetDir);
const webFetchTool = new WebFetchTool();
toolRegistry.registerTool(lsTool);
toolRegistry.registerTool(readFileTool);
@@ -85,4 +87,5 @@ function registerTools(targetDir: string) {
toolRegistry.registerTool(editTool);
toolRegistry.registerTool(terminalTool);
toolRegistry.registerTool(writeFileTool);
toolRegistry.registerTool(webFetchTool);
}