Tools
Built-in tools
Ship-ready tools — web, fetch, filesystem, shell.
| Tool | Import | Notes |
|---|---|---|
webSearch | @agentskit/tools | BYO provider (Tavily, Brave, SerpAPI, etc.) |
fetchUrl | @agentskit/tools | HTTP GET + content extraction |
filesystem | @agentskit/tools | read/write/list, scoped to a root |
shell | @agentskit/tools | exec 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,
})