Expand description
Ready-made tools.
Each module holds a vended tool: a make_* factory that takes options (name,
description, limits, and for the sandbox-routed tools an optional bound
Sandbox), and for most tools a function returning the default
instance. The tool specs, descriptions and result texts are shared with the other Strands SDKs.
- Sandbox-routed:
shell,read,write,editandpython_replrun through the bound sandbox, or the calling agent’ssandbox. - Host:
bashkeeps a persistentbashprocess per agent;http_requestandweb_fetchmake HTTP requests. - Agent loop:
sleep,stop,handoff_to_user,notebookandsubagent. mcp_router(featuremcp): connects to allowlisted MCP servers at runtime.
Modules§
- bash
- The host
bashtool: a persistent bash process per agent, so variables and the working directory carry over between calls. - edit
- The sandbox-routed
edittool: replaces an exact, unique string in a text file. - handoff_
to_ user - The
handoff_to_usertool: pauses the agent loop with an interrupt that surfaces a message to the user; on resume the user’s reply is the tool result. - http_
request - The
http_requesttool: makes HTTP requests to external APIs from the host. - mcp_
router - The
mcp_routertool: connects to allowlisted MCP servers at runtime to discover and invoke their tools. - notebook
- The
notebooktool: text notebooks kept in the agent’s app state undernotebooks, so they persist with the agent. - paths
- Path validation shared by the sandbox-routed file tools.
- python_
repl - The sandbox-routed
python_repltool. - read
- The sandbox-routed
readtool. - shell
- The sandbox-routed
shelltool. - sleep
- The
sleeptool: pauses for a bounded number of seconds and stops at once when the call is cancelled. - stop
- The
stoptool: ends the agent loop gracefully. - subagent
- The
subagenttool: delegates a self-contained task to a child agent built at call time, and returns the child’s final report. - web_
fetch - The
web_fetchtool: fetches an HTTP(S) URL and returns its content as markdown, or answers a prompt about it with an analyst agent so the page never enters the calling agent’s context. - write
- The sandbox-routed
writetool: creates or overwrites a text file. Pairs withreadandedit.