Registry / llm-agents / strands-agents-tools

strands-agents-tools

JSON →
library0.8.7pypypi✓ verified 23d ago

Strands Agents Tools is a collection of specialized tools designed for use with Strands Agents. It provides functionalities like web search, code interpretation, and data interaction for Large Language Models. The library maintains a frequent release cadence, often with minor version updates addressing bug fixes, security enhancements, and new tool capabilities. The current version is 0.4.1.

pip install strands-agents-tools
INSTALL
IMPORT
SIG · STRANDS-AGENTS-TOO
S
strands-agents-tools
llm-agentspythonv0.8.7
Install
20.9s avg
Import
Disk
249MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 23.9s
py 3.11
✓ —
✓ 21.1s
py 3.12
✓ —
✓ 19.3s
py 3.13
✓ —
✓ 19.1s
py 3.9
✕ build_error
✕ build_error
249MB installed
● package 249MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

load_tools
from strands_tools import load_tools
from strands_tools import load_tools

This quickstart demonstrates how to load a specific tool (exa_search) from `strands_tools` and integrate it with an `Agent` from `strands_sdk`. It highlights the need to install optional dependencies for specific tools and set environment variables for authentication. Remember to install `strands-sdk` (`pip install strands-sdk`) and any optional dependencies like `strands-agents-tools[exa]`.

import os from strands_sdk import Agent # Note: strands-sdk is often used in conjunction with strands-agents-tools from strands_tools import load_tools # To use tools like exa_search, install its optional dependency: # pip install strands-agents-tools[exa] # and set the corresponding API key as an environment variable. # Example: os.environ['EXA_API_KEY'] = 'your-exa-api-key' os.environ['EXA_API_KEY'] = os.environ.get('EXA_API_KEY', 'YOUR_EXA_API_KEY_HERE') try: # Load specific tools by name # bypass_tool_consent=True is often useful for quickstarts tools = load_tools(tool_names=["exa_search"], bypass_tool_consent=True) # Initialize the agent with the loaded tools # The Agent class typically comes from strands_sdk, install with: pip install strands-sdk agent = Agent(tools=tools) # Use the agent with a query response = agent("Perform a deep search on recent developments in quantum computing.") print(f"Agent Response: {response}") except ImportError as e: print(f"Could not load tools or agent: {e}. Ensure all necessary optional dependencies (e.g., '[exa]') and 'strands-sdk' are installed.") except Exception as e: print(f"An error occurred during agent execution: {e}")
Debug
Known issues
breakingIn version 0.4.0, the `exa_search` tool's API changed significantly. The `neural` and `keyword` search types were removed, and the `deep` search mode was introduced as the primary comprehensive search option.
fix
Update your `exa_search` calls to use the `deep` search mode. For example, `agent("Do a deep search on quantum computing breakthrough")`.
affects: >=0.4.0
gotchaMany tools within `strands-agents-tools` (e.g., `exa_search`, `selenium_browser`, `mongodb_atlas`) require additional optional dependencies to be installed. The core `strands-agents-tools` package does not include these by default.
fix
Install the package with the desired optional dependency group, e.g., `pip install strands-agents-tools[exa]` or `pip install strands-agents-tools[selenium]`. Consult the project's `pyproject.toml` or documentation for available groups.
affects: All versions
gotchaMost tools require corresponding API keys or credentials to be set as environment variables (e.g., `EXA_API_KEY`, `ANTHROPIC_API_KEY`). Without these, tools will fail to initialize or execute.
fix
Set the required environment variables with your API keys before initializing tools or agents. Refer to the specific tool's documentation for the exact variable names.
affects: All versions
gotchaWhile the tools are imported from `strands_tools`, the `Agent` class itself, commonly used to orchestrate these tools, is typically provided by the `strands_sdk` library, which needs to be installed separately.
fix
Ensure you have `strands-sdk` installed (`pip install strands-sdk`) and import `Agent` from `strands_sdk` (e.g., `from strands_sdk import Agent`).
affects: All versions
gotchaVersion 0.4.1 introduced namespace validation and fixes for Time-of-Check to Time-of-Use (TOCTOU) vulnerabilities in Elasticsearch and MongoDB memory tools. Older versions might be susceptible to security risks if not properly configured.
fix
Upgrade to version 0.4.1 or higher to benefit from enhanced security measures for Elasticsearch and MongoDB tools.
affects: <0.4.1
Upgrade
Version history
0.8.7latest on PyPI · released Aug 28, 2026
Audit
Dependencies
strands-agent-corerequiredCore dependency for many tools' functionality.
exaoptionalOptional dependency for the `exa_search` tool. Install with `pip install strands-agents-tools[exa]`.
seleniumoptionalOptional dependency for the `selenium_browser` tool. Install with `pip install strands-agents-tools[selenium]`.
Agent activity
36 hits · last 30 days
node
32
OpenAI (training)
2
Resources