A TypeScript-based web search plugin for LM Studio. This plugin enables local LLMs to access the live web, read page content, and perform pattern matching within web pages.
Features
Live Web Search: Query the web using DuckDuckGo (no API key required).
Page Reading: Extract clean, readable text from any URL.
In-Page Search: Find specific text or regex-style patterns within a web page.
Domain Filtering: Restrict searches and page reads to specific allowed domains.
Configurable Context: Adjust the amount of data returned to the model (low, medium, or high).
Today's Date: Get the current local date and time.
Privacy Focused: Operates locally as an LM Studio plugin.
Tools Included
The plugin registers four main tools with LM Studio:
search: Performs web searches. Supports single queries or batches of up to 5 queries.
read: Opens a URL and extracts its text content, automatically stripping HTML tags, scripts, and styles.
find_in_page: Searches for a specific pattern (string or regex) within a given URL and returns the surrounding context.
today: Returns the current local date and time.
Configuration
You can configure the following settings in LM Studio:
Search Context Size: Controls the default search breadth and page extraction size (low, medium, high).
Allowed Domains: An optional allowlist of domains for search results and page fetches.
Location Settings: Set your country, region, city, and timezone to improve search relevance.
Search Results Per Page: Customize the number of results returned (1-10).
Safe Search: Set the safety level for search results (strict, moderate, off).