149 Downloads

README

web-tools

Give any local model live web access — search the web and read pages — as callable tools.

Part of lmstudio-suite.

Tools

ToolWhat it does
web_searchSearch the web; returns a ranked list of results (title, URL, snippet).
fetch_urlFetch an http/https page and return its main content as clean Markdown.
http_requestCall a REST API (GET/POST/PUT/PATCH/DELETE) with headers + body; byte-capped.
download_fileDownload a file into the configured download directory (size-capped).
crawlFollow same-origin links from a start URL (bounded depth + pages) → Markdown.

Typical flow: web_search to find sources, fetch_url to read one; http_request hits JSON APIs, crawl reads a small doc section, download_file saves an asset. Every request blocks private/loopback hosts by default (SSRF), re-validated across redirects.

Configuration

Global (app-wide):

  • Web search provider — DuckDuckGo (no key, default), Tavily, Brave, or SearXNG.
  • Search API key — required for Tavily/Brave (stored protected).
  • SearXNG base URL — for a self-hosted SearXNG instance.
  • Allow fetching private/localhost hosts — off by default; blocks SSRF to loopback, internal services, and cloud-metadata endpoints (enforced across redirects). Enable only to let the model read your own local services.

Per-chat:

  • Max search results (default 5)
  • Max characters per fetched page (default 8000)

Use

Enable web-tools in a chat with a tool-capable model, then ask something that needs current information — the model will call web_search / fetch_url on its own.

MIT licensed.