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.
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.You can configure the following settings in LM Studio:
@lmstudio/sdk v1.5.0.low, medium, high).strict, moderate, off).Run in Development Mode:
This uses lms dev to load the plugin into LM Studio for testing.
Build the Plugin:
Compiles the TypeScript source code into the dist directory.
Run Tests:
Executes the test suite using the Node.js test runner.
npm install
npm run dev
npm run build
npm test