agentskit.js
Tools

Built-in tools

Ship-ready tools — web, fetch, filesystem, shell.

ToolImportNotes
webSearch@agentskit/toolsBYO provider (Tavily, Brave, SerpAPI, etc.)
fetchUrl@agentskit/toolsHTTP GET + content extraction
filesystem@agentskit/toolsread/write/list, scoped to a root
shell@agentskit/toolsexec commands, sandbox-friendly

webSearch

import { webSearch, tavilyProvider } from '@agentskit/tools'

const tool = webSearch({ provider: tavilyProvider({ apiKey: process.env.TAVILY_API_KEY! }) })

fetchUrl

import { fetchUrl } from '@agentskit/tools'

const tool = fetchUrl({ stripBoilerplate: true, maxBytes: 500_000 })

filesystem

import { filesystem } from '@agentskit/tools'

const tool = filesystem({ root: '/tmp/agent-work', readonly: false })

shell

import { shell, createMandatorySandbox } from '@agentskit/tools'

const tool = createMandatorySandbox(shell({ cwd: '/tmp/agent-work' }), {
  deny: ['rm -rf', 'sudo'],
  requireSandbox: true,
})
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page