Keywords: lm studio plugin, system context ai, clipboard ai, active window awareness, local context injection, private system monitoring, no cloud, macos ai context
Live system context for LM Studio. Gives the model instant access to your clipboard, active window, running apps, and system info ā on demand via tools, or automatically injected into every new chat session.
Load the built plugin folder in LM Studio.
pbpaste and AppleScript)| Field | Default | Description |
|---|---|---|
| Inject Clipboard into Prompt | false | Prepend clipboard contents to every new chat session |
| Max Clipboard Characters | 8000 | Truncate clipboard at this length to avoid oversized prompts |
contextSingle tool with four actions.
clipboardGet the current clipboard text.
Returns { chars, content }. Truncated at Max Clipboard Characters if oversized.
active_windowGet the frontmost application and window title.
Returns { active_app, window_title }.
running_appsList all visible (non-background) running applications.
Returns { count, apps } ā sorted alphabetically.
systemOS and hardware info.
Returns { platform, os_release, arch, hostname, username, cpu, ram_total_gb, ram_free_gb, ram_used_pct }.
When Inject Clipboard into Prompt is enabled, the first message of every session gets the clipboard prepended:
This enables a fast paste-and-ask workflow: copy something ā open LM Studio ā ask your question ā the model already has the context. Disable if you prefer to ask explicitly via context(action="clipboard").
Ask about something you just copied:
"Explain this" (with clipboard injection enabled ā the copied text is already in context)
Check what's in the clipboard:
"What do I have in my clipboard?" ā
context(action="clipboard")
Situational awareness:
"What am I working on right now?" ā
context(action="active_window")
Debug environment:
"What machine am I on?" ā
context(action="system")
cd context-plugin
npm install
npm run build
context(action="clipboard")
context(action="active_window")
context(action="running_apps")
context(action="system")
[Clipboard contents:
<clipboard text here>
]
<your message here>