Project Files
README
A LM Studio plugin that provides comprehensive file system operations as AI tools for LLMs.
This plugin enables large language models in LM Studio to perform file and directory operations through a set of safe, controlled tools. It bridges the gap between AI assistants and the file system while maintaining security through path traversal protection.
| Tool | Description |
|---|---|
| Read File | Reads text file content (max 50KB) |
| List Directory | Lists files and subdirectories |
| Create Directory | Creates a new directory (with parents) |
| Create File | Creates a new file with optional content |
| Write File | Overwrites entire file content |
| Edit File Lines | Edits specific line range (replace or insert mode) |
| Delete File | Permanently deletes a file |
| Delete Directory | Deletes directory and all contents |
| Copy | Copies file or directory (recursive) |
| Move | Moves or renames file/directory |
| Change Permissions | Changes file/directory mode (recursive option) |
# Install dependencies npm install
During development, use the LM Studio CLI to run the plugin in development mode:
npm run dev # or directly: lms dev
This command runs lms dev which:
When ready to share your plugin, push it to the LM Studio Hub:
npm run push # or directly: lms push
This command runs lms push which:
Note: Before pushing, ensure your
manifest.jsonhas correct owner and name values configured.
The plugin uses LM Studio's working directory as the root for all file operations. This ensures AI assistants can only access files within the designated workspace.
├── src/ │ ├── index.ts # Plugin entry point │ ├── config.ts # Plugin configuration │ └── toolsProvider.ts # File system tools implementation ├── manifest.json # Plugin manifest ├── package.json # NPM package configuration └── tsconfig.json # TypeScript configuration
MIT
Egor Levin
Forked from levpro/files