Project Files
Radme.md
Версия 4.1.0
System prompt, paste to LM Studio before using plugin:
You are an AI assistant with access to file system, console, and internet tools.
Available tools: list_files — returns a list of files (not folders) in the base directory. No parameters. create_file — creates or overwrites a file in the base directory. Parameters: file_name (string), content (string). read_file — reads the content of a file by name from the base directory. Parameter: file_name (string). run_command — executes a console command in the chat's working directory. Parameter: command (string). Timeout is configurable. fetch_webpage — loads a web page via Chromium browser and extracts the title, cleaned text (up to 5000 characters), first 20 links, and first 20 image URLs. Parameter: url (string).
Guidelines: To search the internet, construct a Google search URL yourself: https://www.google.com/search?q=query (replace spaces with +). Then call fetch_webpage with this URL. Analyze the page text and respond to the user. If you need to read a specific page (e.g., from the search results), also use fetch_webpage with its URL. Always use JSON format when calling a tool: {"name": "tool_name", "arguments": {...}}. Example: {"name": "read_file", "arguments": {"file_name": "example.txt"}}. If a tool returns an error, try a different URL or inform the user. Respond in the same language as the user's request.
Системный промпт, втавьте в окно системного промпта LM Studio перед использованием плагина:
Ты — интеллектуальный AI-агент с доступом к набору инструментов для работы с файлами, консолью и интернетом. Доступные инструменты:
list_files — возвращает список файлов (не папок) в базовой директории. Параметры: нет. create_file — создаёт или перезаписывает файл в базовой директории. Параметры: file_name (строка), content (строка). read_file — читает содержимое файла по имени из базовой директории. Параметр: file_name (строка). run_command — выполняет консольную команду в рабочей директории чата. Параметр: command (строка). Таймаут настраивается в плагине. fetch_webpage — загружает веб-страницу через браузер Chromium и извлекает заголовок, текст (до 5000 символов), первые 20 ссылок и 20 изображений. Параметр: url (строка).
Правила использования инструментов:
Для поиска информации в интернете сформируй URL поиска Google самостоятельно: https://www.google.com/search?q=запрос (пробелы замени на +). Затем вызови fetch_webpage с этим URL. Получив текст страницы, проанализируй его и дай ответ пользователю. Если нужно прочитать конкретную страницу (например, из результатов поиска), также используй fetch_webpage с её URL. При вызове инструмента всегда формируй JSON-объект с полями name и arguments. Пример: {"name": "read_file", "arguments": {"file_name": "example.txt"}}. Если инструмент возвращает ошибку, попробуй другой URL или сообщи пользователю о проблеме. Отвечай на том же языке, что и запрос пользователя.
AI Agent Tools — это плагин, превращающий LM Studio в полноценного AI-агента. Он предоставляет модели доступ к файловой системе, консоли и интернету через настоящий браузер Chromium (Playwright).
Возможности:
list_files, create_file, read_file — создание, чтение и просмотр файлов.
В качестве рабочей директории с которой взаимодействует плагин, можно указать абсолютный путь, к примеру: "C:\Users\USER\Desktop\test_dir", или не указывать, в этом случае взаимодействие осущетвляется с рабочей директорией чата LM Studio.Важно для обхода блокировок Google:
Укажите в настройках плагина путь к папке User Data вашего Chrome (например, C:\Users\Имя\AppData\Local\Google\Chrome\User Data). Перед запуском закройте все окна Chrome!
AI Agent Tools is a plugin that turns LM Studio into a full-featured AI agent. It gives the model access to the file system, console, and the internet via a real Chromium browser (Playwright).
Features:
list_files, create_file, read_file — manage and read files.
As the working directory that the plugin interacts with, you can specify an absolute path, for example: "C:\Users\USER\Desktop\test_dir", or leave it unspecified, in which case the interaction takes place with the LM Studio chat's working directory.Important for bypassing Google blocks:
Specify the path to your Chrome User Data folder in the plugin settings (e.g., C:\Users\Name\AppData\Local\Google\Chrome\User Data). Close all Chrome windows before running the plugin!
Плагин прошёл несколько итераций: от DuckDuckGo API до прямого парсинга Google и, наконец, до использования Playwright с постоянным профилем Chrome. Это решение обеспечивает максимальную надёжность и обходит капчу без API-ключей. Файловые и консольные инструменты делают плагин универсальным помощником для автоматизации.
The plugin evolved through multiple iterations: from DuckDuckGo API to direct Google parsing and finally to Playwright with a persistent Chrome profile. This approach ensures maximum reliability and bypasses CAPTCHA without API keys. File and console tools make the plugin a versatile automation assistant.
MIT
run_command — выполнение команд в терминале (bash / cmd).fetch_webpage — загрузка любых страниц, включая поиск Google. Поддерживается обход капчи при использовании вашего профиля Chrome.run_command — execute terminal commands (bash / cmd).fetch_webpage — load any web page, including Google Search. CAPTCHA bypass is supported when using your own Chrome profile.npm install (автоматически загрузится Chromium) / Run npm install (Chromium will be downloaded automatically).npm run build / Run npm run build.lms dev (для разработки) или опубликуйте через lms push / Run lms dev (for development) or publish via lms push.User Data Chrome (рекомендуется).