Chromium never enters the room
Tools that boot a browser to take a picture of your desktop are solving the wrong problem. screenagents asks the OS.
███████╗ ██████╗██████╗ ███████╗███████╗███╗ ██╗ █████╗ ██████╗ ███████╗███╗ ██╗████████╗███████╗
██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝████╗ ██║██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝██╔════╝
███████╗██║ ██████╔╝█████╗ █████╗ ██╔██╗ ██║███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║ ███████╗
╚════██║██║ ██╔══██╗██╔══╝ ██╔══╝ ██║╚██╗██║██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ ╚════██║
███████║╚██████╗██║ ██║███████╗███████╗██║ ╚████║██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║ ███████║
╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝
_
___ __ _ _ ___ ___ _ _ __ _ __ _ ___ _ _| |_ ___
(_-</ _| '_/ -_) -_) ' \/ _` / _` / -_) ' \ _(_-<
/__/\__|_| \___\___|_||_\__,_\__, \___|_||_\__/__/
|___/ Screenshot anything, instantly. No Playwright. No headless browser. No 300 MB of Chromium.
A tiny Python package that shells out to the screenshot tool your operating system already has — then hands you a file, metadata, or an image for your agent. CLI, library, and MCP server in one.
one capture cycle, exactly as the CLI runs it — no browser, no Playwright
Tools that boot a browser to take a picture of your desktop are solving the wrong problem. screenagents asks the OS.
pip install screenagents pulls nothing else. The MCP server is optional and the only extra there is mcp.
Twelve backends, detected at runtime, ordered by fitness — region and monitor support included. see the table.
Both take pictures. Only one takes a picture of your screen without moving a browser engine into your project.
| capability | screenagents | headless browser tooling |
|---|---|---|
| Captures the actual desktop | native API/CLI | renders a page instead |
| Third-party dependencies | 0 | dozens |
| Install size | ~40 KB | 300 MB+ |
| Works on Wayland / X11 / macOS / Windows | yes | limited |
| Region and monitor targeting | flags | only the page, not the screen |
| Usable by an LLM agent | MCP tool, base64 image | varies |
Full screen by default. A region, a monitor, a specific backend, JSON metadata, atomic writes — all one flag away.
Detection order is best-first and session-aware: on X11 only X11 tools are considered, on Wayland only Wayland tools, unless you force one with --backend.
region = can capture x,y,w,h · monitor = can target one display · display = can target a named output · full detail on the backends page.
The bundled MCP server exposes capture_screenshot — it returns the PNG as base64, so a multimodal model can actually look at your screen instead of guessing.
Agents can ask for exactly what they need: a region, a monitor, or a named output — and decide which backend to use after reading list_screenshot_backends.
Nothing runs in the background, nothing listens on a port, and the only permission involved is the screen-recording permission your OS already enforces.
> mcp setupA PNG next to you, a screenshot object in Python, or base64 in your agent's context. Dimensions parsed from the file header, bytes counted, backend recorded.
The questions every screenshot tool page answers badly — answered honestly, with the trade-offs included.
Only for screenshots of your screen. screenagents calls the operating system's native capture tool — no browser engine is involved. If you need to render and screenshot a web page, Playwright is still the right tool.
Yes. Twelve native backends are detected at runtime and ranked best-first: screencapture on macOS, PowerShell on Windows, grim / scrot / maim on Linux. Detection is session-aware, so an X11-only tool is never chosen inside a Wayland session unless you force one with --backend.
The core is Python stdlib only — pip install screenagents pulls nothing else, and the MCP server is the only optional extra. No Chromium, no Playwright, no browser engine.
Yes. The bundled MCP server exposes capture_screenshot and returns the PNG as base64, so a multimodal model can actually look at the screen instead of guessing. Nothing runs in the background and nothing listens on a port.
screenagents --doctor explains exactly why each backend is or is not available. Captures fail with typed exceptions that carry the backend's own stderr, and atomic writes mean a failed capture never leaves a half-written PNG behind.