Skip to main content

Module vended_tools

Module vended_tools 

Source
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.

Modules§

bash
The host bash tool: a persistent bash process per agent, so variables and the working directory carry over between calls.
edit
The sandbox-routed edit tool: replaces an exact, unique string in a text file.
handoff_to_user
The handoff_to_user tool: 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_request tool: makes HTTP requests to external APIs from the host.
mcp_router
The mcp_router tool: connects to allowlisted MCP servers at runtime to discover and invoke their tools.
notebook
The notebook tool: text notebooks kept in the agent’s app state under notebooks, so they persist with the agent.
paths
Path validation shared by the sandbox-routed file tools.
python_repl
The sandbox-routed python_repl tool.
read
The sandbox-routed read tool.
shell
The sandbox-routed shell tool.
sleep
The sleep tool: pauses for a bounded number of seconds and stops at once when the call is cancelled.
stop
The stop tool: ends the agent loop gracefully.
subagent
The subagent tool: delegates a self-contained task to a child agent built at call time, and returns the child’s final report.
web_fetch
The web_fetch tool: 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 write tool: creates or overwrites a text file. Pairs with read and edit.