Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
prtsc
A screen capture/recording CLI for Linux, driven entirely by the XDG
Desktop Portal - no window enumeration, no picker UI of its own. The
compositor's own screenshot/screen-share dialog (GNOME Shell, KDE, etc.)
handles source selection; prtsc just talks to the portal and PipeWire.
Also runs as an MCP server (prtsc mcp), exposing the same capture and
recording actions as tools for AI assistants/agents.
Install
This installs a prtsc binary (the crate is published as prtsc-mcp on
crates.io since the plain prtsc name was already taken).
Requirements
- A Linux desktop with
xdg-desktop-portaland a backend that implements theScreenshot/ScreenCastportal interfaces (GNOME, KDE, etc.). - PipeWire, for the
recordcommand andstart_recording/stop_recordingMCP tools. - A C++ toolchain at build time:
openh264(video) andfdk-aac(audio) are both compiled from vendored source.
CLI usage
# One-shot screenshot: opens the portal's screenshot picker, prints the
# saved file's location on success.
# Record a screencast to an mp4 file until Ctrl-C/SIGTERM.
# default sink's monitor, not the mic)
# Run as an MCP server over stdio.
MCP tools
Running prtsc mcp exposes three tools over stdio:
capture- opens the screenshot picker and returns the saved file's location.start_recording(path? ,audio?) - opens the screen-share picker and starts recording; blocks until recording has actually begun. Only one recording can be in progress at a time.stop_recording- stops the in-progress recording and returns the saved file's location.
Why no window list
Earlier revisions had an in-app window picker (winit + softbuffer +
ratatui). It was dropped once the portal's own compositor-drawn picker
took over source selection - see docs/implementation-plan.md for the
full history, including the standalone softbuffer-backend crate that
rendering layer became.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.