smart-web

v0.8.4
io.github.rich-jojo/smart-web Checked 3 days ago Published 8 months ago

Web search, direct-URL fetch, crawl, and docs export MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

smartsearch Smart Search

Search the web when the user gave a topic, keywords, or a `site:` query instead of a specific URL. Use this for discovery first; if you already have a direct URL, use smartfetch instead. Can optionally hand off into smartcrawl for same-site exploration. If smart-web returns reproducible incorrect or misleading output, open a GitHub issue on rich-jojo/smart-web with the exact input, arguments, observed output, expected behavior, and version. Skip obvious transient network/auth/rate-limit failures unless smart-web misclassified them.

ParameterTypeDescription
query *stringSearch-engine style query. Use this when the user gave a topic or keywords rather than a direct URL.
contextMaxCharactersintegerMaximum snippet/context size hint
crawl_limitintegerMaximum ranked crawl results to return in the handoff summary
crawl_max_depthintegerMaximum recursive depth for the crawl handoff
crawl_max_pagesintegerMaximum number of pages to visit during the crawl handoff
crawl_modestringTraversal hint for the smartcrawl handoff
crawl_timeout_msintegerPer-page timeout for the crawl handoff
crawl_urlstringOptional starting URL for the smartcrawl handoff
numResultsintegerNumber of search results to return
site_crawlbooleanAfter search, hand off into smartcrawl when a crawl_url or site: operator is available
typestringSearch depth hint

smartcrawl Smart Crawl

Traverse a known site when one page is not enough and you need multiple relevant docs pages, posts, or thread items. Start from a concrete site URL; if you need to discover the site first, use smartsearch, and if you only need one direct URL, use smartfetch. Add `output_dir` when you want the crawl written to a local Markdown folder instead of returned only as a ranked summary. For LinkedIn profile URLs this is best-effort recent public post discovery, not full archive pagination. If smart-web returns reproducible incorrect or misleading output, open a GitHub issue on rich-jojo/smart-web with…

ParameterTypeDescription
url *stringStarting site or docs URL to explore. Use this when you need multiple pages from one site, not a single direct URL fetch.
exclude_patternsarrayOptional regex or substring patterns for URLs to skip
follow_paginationbooleanFollow next or more-style pagination links during exploration
formatstringText rendering format for the human-readable content
include_patternsarrayOptional regex or substring patterns for URLs to keep
limitintegerMaximum number of ranked results to return. For LinkedIn profile URLs this acts like a best-effort recent public post count.
max_depthintegerMaximum recursive depth from the starting URL. Export mode can use deeper values than the summary crawl path.
max_pagesintegerMaximum number of pages to visit. In export mode this is the docs crawl budget; otherwise smartcrawl still behaves like an exploration-oriented crawl.
modestringTraversal hint for boards, docs sites, or automatic detection
output_dirstringOptional local directory where a docs-style crawl should be exported as Markdown files. When omitted, smartcrawl returns only a ranked crawl summary.
querystringOptional topic filter used to rank crawl results
same_origin_onlybooleanRestrict traversal to the starting origin while still surfacing external item links
scroll_stepsintegerHow many scroll attempts to use for scroll-driven pages
timeout_msintegerCrawl timeout budget per page

smartfetch Smart Fetch

Fetch and normalize one known URL or shortlink. Use this first for direct user-supplied URLs, browser-rendered pages, social posts, and videos; do not use smartsearch when the user already provided the URL, and use smartcrawl only when you need multiple pages from the same site. If smart-web returns reproducible incorrect or misleading output, open a GitHub issue on rich-jojo/smart-web with the exact input, arguments, observed output, expected behavior, and version. Skip obvious transient network/auth/rate-limit failures unless smart-web misclassified them.

ParameterTypeDescription
url *stringDirect URL or shortlink to fetch. Prefer this tool when the user already supplied a URL.
downloadbooleanPrefer a downloadable asset result when the URL or discovered assets point to a file
force_dynamicbooleanSkip light fetches and go straight to Playwright
formatstringText rendering format for the human-readable content
strict_schemabooleanReturn schema-safe fallback output when normalization breaks
targetstringContent type hint
timeout_msintegerFetch timeout in milliseconds