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 |
During development, use the LM Studio CLI to run the plugin in development mode:
This command runs lms dev which:
When ready to share your plugin, push it to the LM Studio Hub:
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.
MIT
Egor Levin
| Moves or renames file/directory |
| Change Permissions | Changes file/directory mode (recursive option) |
# Install dependencies
npm install
npm run dev
# or directly:
lms dev
npm run push
# or directly:
lms push
āāā 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