lens_system
Check lens installation status, fetch the current agent guide, or update the install directory. Supports dry-run and forced updates with automatic stashing of local changes.
Instructions
Install status, self-update, and the current agent guide — lens's self-maintenance tool. action='status' (read-only): running vs on-disk version, git commit, install type, install directory, Node version, and whether an update is available. action='agents_md' (read-only): returns the CURRENT AGENTS.md so you can refresh a stale pasted copy of your operating guide. action='update': dry-run by default (commits behind + incoming changes); apply=true runs update.sh (git pull + npm ci + build + self-test) — new code loads only after the MCP server restarts, and the response says so. force=true stashes local edits. Managed installs (no .git) refuse with guidance. Note: this operates on the lens INSTALL directory, not your project (the code tools' sandbox). Returns JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | For action='update': actually run the update instead of the dry-run check (default false). | |
| force | No | For action='update' with apply=true: auto-stash local modifications first (recoverable via `git stash pop`). | |
| action | No | status = version/commit/update-check (default); update = check or apply an update; agents_md = fetch the current agent guide |