The web search tool gives agents access to live web data without requiring any API credentials.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vrashmanyu605-eng/Agentic_Sales-Markerting/llms.txt
Use this file to discover all available pages before exploring further.
web_search() performs a general DuckDuckGo query and returns structured results. search_company() builds on it by targeting a company’s official website, filtering out social media URLs, and automatically scraping the page content — giving downstream agents enriched context in a single call.
This tool uses DDGS (DuckDuckGo Search) — no API key or account is required.
Source code
search_tool.py
web_search()
Runs a DuckDuckGo text search and returns structured results.
Parameters
The search query string to send to DuckDuckGo.
Maximum number of search results to return. Passed directly to
DDGS.text().Return value
Returns alist of dict objects, one per result. Each dict contains:
The page title from the search result.
The full URL of the result page.
The snippet or description text shown in the search result.
search_company()
Finds a company’s official website, then scrapes its content. Builds the query "{company_name} official company website" and passes it to web_search(). It picks the first result URL that does not contain linkedin.com, facebook.com, twitter.com, or instagram.com, then calls scrape_website() on that URL.
Parameters
The name of the company to search for, e.g.
"Acme Corp".Return value
Returns a singledict with three keys:
The full list of raw search result dicts returned by
web_search().The first non-social-media URL found in the results, or
None if all results were social media links.The cleaned text extracted from
website_url by scrape_website(), up to 10,000 characters. Empty string if no URL was found.