User screenshots
Purpose
Lets the user take screenshots with the Print keys of the Ubuntu shell and a protected web UI offering region, screen and window modes, saving a PNG in the Pictures folder and on the clipboard.
Requirements
Requirement: Only user input starts a screenshot
Only user input SHALL start a screenshot: Print keys in the compositor, a click in the protected screenshot panel, the protected quick settings button, or a hot corner set to screenshot (it only opens the UI); no agent tool, MCP entry, generated HTML, plugin panel or scheduled turn MUST start one, read one or get the pixels. Full text: section Binding contract (from AGENTS.md).
Scenario: Agent requests a capture
- WHEN an agent tool or generated HTML asks for a screenshot
- THEN it cannot start one, read one or get the pixels
Requirement: Pixels stay out of state and context
Pixels MUST NOT enter the state JSON, the logs or the model context, and the core SHALL delete the full-output PPM after it reads it. Full text: section Binding contract (from AGENTS.md).
Scenario: State read
- WHEN the state JSON is read
- THEN it contains no pixels
Requirement: No screenshot while locked
No screenshot SHALL be taken while the session is locked, and a lock during the UI SHALL close it without saving; the compositor drops the keys and refuses capture and clipboard_image with "Session is locked". Full text: section Binding contract (from AGENTS.md).
Scenario: Lock during the UI
- WHEN the session locks while the screenshot UI is open
- THEN the UI closes without saving
Scenario: Lock during capture
- WHEN the session locks while a capture is pending
- THEN it ends with "Session is locked" and no file or clipboard is produced
Requirement: Routes need host credentials
The /api/screenshot* routes SHALL require the host token, which generated HTML and isolated panels never get, and /host-screenshot SHALL require the host main key. Full text: section Security boundary.
Scenario: Launch key only
- WHEN a request to /host-screenshot carries only the shell token or the launch key
- THEN the route does not open
Requirement: Print key bindings
Print SHALL open the screenshot UI, Shift+Print SHALL save the focused output at once and Alt+Print SHALL save the focused application window at once; a key with Super or Ctrl does nothing and no key works while the session is locked. Full text: section Keys.
Scenario: Ctrl+Print
- WHEN a Print key is pressed with Ctrl
- THEN nothing happens
Requirement: Shell window is never the target
When the shell has the keyboard, Alt+Print SHALL use the last application window that held focus on this compositor instance, and a shell window MUST NOT be the target. Full text: section Keys.
Scenario: Chat has the keyboard
- WHEN the chat has the keyboard and Alt+Print is pressed
- THEN the last application window that held focus is captured
Requirement: UI generation guards the capture
The core SHALL hold the UI state {generation, open, output}; a capture from the UI carries the generation, and the core MUST refuse a capture when the UI is closed or the generation differs; the page never closes its own window. Full text: section How the UI opens and closes.
Scenario: Old generation close
- WHEN a close of an older generation arrives
- THEN it does nothing
Requirement: UI and pointer are not in the image
The core SHALL close the UI and wait until the compositor state shows no visible window of the screenshot panel (at most 2 s) before it asks for the capture; a panel that does not hide gives no capture, and the capture asks for cursor false. Full text: section The UI is not in the image.
Scenario: Panel stays visible
- WHEN the screenshot panel does not hide within the wait
- THEN no capture is made
Requirement: Window capture renders the window alone
A window capture SHALL render the surfaces of that window alone, offscreen, at the window geometry and scale 1; the compositor MUST refuse a shell window ("Shell is protected"), an unknown window and an unmapped window. Full text: section Capture.
Scenario: Shell window
- WHEN a capture is requested for a shell window
- THEN the compositor refuses it with "Shell is protected"
Requirement: One capture at a time
Screenshots and "Mostrar ao agente" SHALL take turns through one queue of the core (captureExclusive), from the request to the delete, so one never reads or deletes the image of the other. Full text: section Capture.
Scenario: Two captures
- WHEN a screenshot and a Mostrar ao agente capture overlap
- THEN they take turns through the queue
Requirement: Original resolution conditions
Original resolution SHALL apply only on a Canvas workspace of the primary output with zoom below 1 and no lock, overview, workspace transition or thumbnail motion, and no plan is made while the canvas lens of the last frame draws (canvasWarp.drawn); the core hides "Resolução original" while it is true. Otherwise the output frame answers the request. Full text: section Original resolution.
Scenario: Zoom 1 or above
- WHEN the Canvas zoom is 1 or above
- THEN the core gets the output frame
Requirement: Original resolution size limits
An original-resolution image SHALL be limited to 67,108,864 pixels, a width of 16384 pixels or less when the GPU reports a smaller limit and a height of 32768 pixels, and a larger image is scaled down with the same aspect ratio. Full text: section Original resolution.
Scenario: Image too large
- WHEN the image exceeds 64 megapixels
- THEN it is scaled down and the notification adds "Reduzida para o limite de 64 megapixels."
Requirement: Bands and frozen plan
The compositor SHALL render the image in horizontal bands, at most one band per render loop, from a plan frozen at the first band; a window of the plan that closes after the first band ends the capture with "A window closed during the capture" and removes the file. Full text: section Bands.
Scenario: Camera moves mid-capture
- WHEN the camera moves between bands
- THEN the image does not change and is not cancelled
Requirement: Band failure and deadline
A job SHALL end with "Original-resolution capture timed out" and remove its file when it still runs 15 s after its first band, and when the first band fails the output frame of the same loop SHALL answer the request. Full text: section Bands.
Scenario: First band fails
- WHEN the first band fails
- THEN the compositor removes the file and the output frame answers
Requirement: Output file
The screenshot SHALL be saved in the Screenshots folder of the Pictures directory, created with mode 0700 when missing, named Captura de tela de YYYY-MM-DD HH-MM-SS.png, opened with O_EXCL and O_NOFOLLOW with mode 0600 so it never overwrites a file and never follows a link. Full text: section Output.
Scenario: Name exists
- WHEN the file name already exists
- THEN the core adds -1, -2 and so on
Requirement: Clipboard limit
A PNG above 64 MiB SHALL go only to the file, with the notification adding "Grande demais para a área de transferência; salva só no arquivo."; the selection uses the MIME type image/png and a primary selection is not set. Full text: section Output.
Scenario: Large PNG
- WHEN the PNG is above 64 MiB
- THEN it is saved only to the file
Requirement: Multiple outputs
Only /host-window with the host main key SHALL declare an output for the protected screenshot panel, other panels and isolated plugins MUST NOT use this field, and extra outputs SHALL use their composed frame without the original resolution option. Full text: section Multiple outputs (2026-11-04).
Scenario: Plugin declares an output
- WHEN an isolated plugin declares an output for the panel
- THEN it is refused
Requirement: Version skew
The core SHALL send original only to a compositor that reports capabilities.screenshotOriginal, and an older core MUST NOT be paired with this compositor. Full text: section Version skew.
Scenario: Old compositor
- WHEN the compositor does not report screenshotOriginal
- THEN the core does not send original and the UI does not show the option
Status
Doc status: current contract. User screenshots (Print keys, protected UI). Its own Status paragraph says it was not tested in the live session on 2026-11-02. Checked 2026-11-10.
Introduction
Status (2026-11-02): implemented on the worktree branch, with unit tests and nested QA. It takes effect at the next login with the new compositor, host and core. It was not tested in the live session.
The user takes screenshots with the keys of the Ubuntu shell (GNOME Shell 42 and later). A protected web UI offers the region, screen and window modes. The result is a PNG in the Pictures folder and the same PNG on the clipboard.
Keys
The compositor matches the keys in screenshot_shortcut of native/smithay/src/input.rs. Each key sends one typed input request to the core, as the workspace keys do.
| Key | Request | Result |
|---|---|---|
screenshot_ui |
Opens the screenshot UI. A hot corner that the user set to screenshot sends the same request (hot-corners.md). |
|
| Shift+Print | screenshot_screen |
Saves the focused output at once. On a Canvas workspace below zoom 1 it saves the camera area at the original resolution (see below). |
| Alt+Print (Sys_Req on most keymaps) | screenshot_window |
Saves the focused application window at once. |
- A key with Super or Ctrl does nothing. GNOME 42 also has no Ctrl variant.
- No key works while the session is locked.
locked_shortcutkeeps only the VT keys. - When the shell has the keyboard (the chat, a panel), Alt+Print uses the last application window that held focus on this compositor instance. A shell window is never the target.
- A Print key works while the agent runs a turn. The capture runs beside the key queue, so a slow save does not hold the next key.
- Screen recording (Shift+Ctrl+Alt+R in GNOME) is not built.
The screenshot UI
The UI is the protected panel screenshot (vendor/interface/host/screenshot.html, .css, .js). Its declaration is top-left, 4096x4096, offsets 0, keyboard: true, auto_open: false, close_on_blur: false. The output clamps it, so it covers the whole selected output and dims it. It binds through the host token flow of window layers phase 2, like the other protected panels. It has no bar button.
- Região (region): the user drags a rectangle. The area inside the rectangle is not dimmed.
- Tela (screen): the whole output.
- Janela (window): the user clicks a window. The page gets the application windows of the active workspace from
GET /api/screenshot(id, rectangle and title only) and picks the topmost one under the click. - Resolução original: a check box beside the modes, only on a Canvas workspace and only for Região and Tela. It is on at each open. See Original resolution.
- The round button captures. Enter and Ctrl+C also capture (Ctrl+C since 2026-11-03; the PNG goes to the clipboard as always). Escape or the close button cancels.
The quick settings panel has a "Captura de tela" button in its system row. It calls POST /api/screenshot/open, then closes the quick settings, so they are not in the image.
How the UI opens and closes
- The core holds the UI state
{generation, open, output}. Each open or close is a new generation. The connector is selected fromfocusOutputbefore the panel takes focus and stays fixed until the next open. Unplugging it closes the UI without saving. - The Electron main process long-polls
POST /host-screenshotwith the host main key header. It shows the panel on an open and hides the window on a close. The shell token and the launch key do not open this route. - The page never closes its own window. It asks the core through
POST /api/screenshot/close {generation}. A close of an older generation does nothing. - A capture from the UI carries the generation of the open UI. The core refuses a capture when the UI is closed or the generation differs.
- The page reads the targets again each time its window becomes visible. A Print press while the UI shows opens it again with a new generation; the page reads it and tries once more.
The UI is not in the image
The core closes the UI, then waits until the compositor state shows no visible window of the screenshot panel (at most 2 s). Only then does it ask for the capture of the next frame. A panel that does not hide gives no capture.
The capture asks for cursor: false, so the pointer is not in the image. The compositor hides the pointer only for that one frame.
Capture
The core reuses the compositor capture command (native/smithay/src/capture.rs and docs/capture-tty4.md):
- Screen and region: the next composed frame of the selected output, as a PPM. The region is a crop of that frame in output-local coordinates. Outputs are not combined. Print opens on the focused monitor, and Shift+Print captures that monitor. Window mode lists its visible workspace and uses the per-output presentation rectangle for shared windows. Alt+Print accepts the focused application on any visible workspace.
- Window:
capture {window_id}. The compositor renders the surfaces of that window alone, offscreen, at the window geometry and at scale 1, into a PAM (P7, RGBA, straight alpha). So the image has only the window content, not the windows above it. A popup or a client-side shadow outside the window geometry is cut at the edge of the geometry. The compositor refuses a shell window ("Shell is protected"), an unknown window and an unmapped window. - The core opens the file of the private socket directory and deletes it at once, also after a failure. It then reads the open file in blocks of rows of at most 4 MiB (one read a block when the rows have the full width) and writes the PNG as zlib gives it (
fileRowsandwritePngin core/screenshots.js), so it never holds the whole image or the whole PNG in memory. - The compositor has one capture slot and one
capture.ppm. The screenshots and "Mostrar ao agente" take turns through one queue of the core (captureExclusivein core/smithay.js), from the request to the delete, so one never reads or deletes the image of the other. The encode of the PNG comes after the delete, from the open file, outside the queue. - A capture of either kind that is still pending when the session locks ends with "Session is locked" at the lock (
enter_session_lock), before the lock screen is drawn into a file. The render loop checks again before each capture render.
Original resolution
On a Canvas workspace the camera can zoom out, and the output frame then shows each window smaller than its own pixels. The original resolution keeps the pixels of the windows: the compositor renders the visible camera area offscreen at scale 1 relative to the windows, not the zoomed output frame.
- The core sends
capture {original: true}. The compositor refuses it withwindow_id("Original resolution is for the output"); serde refuses a value that is not a boolean. - In the next render loop the compositor makes the plan (
original_planin native/smithay/src/screenshot.rs). The active workspace of the primary output must be Canvas, with zoom below 1, and no lock, overview, workspace transition or thumbnail motion may show. Without such a plan the output frame of the same loop answers the request, as for a capture withoutoriginal. - The area is the content area of the primary output (the viewport of the camera, without the bars). The image size is that area divided by the zoom: at zoom 0.5 a 1920x1080 area becomes 3840x2160.
- The image has the canvas application windows of the area, their dialogs and their popups, in the stacking order of the scene, drawn from their live buffers (never the downscale cache of phase 8), with the corner finish of the scene. The chat, the bars, the web panels (also the canvas-space plugins), the screenshot UI and the pointer are not in it. The background is the plain clear color of the compositor, not the wallpaper.
- At zoom 1 or above the output frame already has the windows at their own pixels or more, so the core gets the output frame.
- The canvas lens (inverted sphere view, phase 1): while the lens of the last frame draws (
canvasWarp.drawn),original_planmakes no plan, so the output frame answers, and that frame is warped. The core hides "Resolução original" whilecanvasWarp.drawnis true (originalOfferedin web-shell/core/screenshots.js). A region or screen screenshot then shows the warped view. A window screenshot should stay flat, because it renders the window alone; no test or QA checks this yet (unverified). - The camera at the first band decides the image, not the camera at the request. A pan or a zoom between the request and that frame (a short time: the core first waits until the UI has left the screen) moves or resizes the image.
- The limit is 67,108,864 pixels (64 megapixels), a width of 16384 pixels or less when the GPU reports a smaller
max_texture_dimension_2d(the wgpu device limit), and a height of 32768 pixels. A larger image is scaled down to fit, with the same aspect ratio. The notification adds "Reduzida para o limite de 64 megapixels." when the pixel count scaled it, else "Reduzida para o tamanho máximo de lado da imagem." (the GPU side limit on the width or the 32768 rows). The core refuses an output frame or a window image above 16,777,216 pixels; only an original-resolution image can be larger.
Bands
The compositor renders the image in horizontal bands (band_rows, band_at in native/smithay/src/screenshot.rs, OriginalJob in native/smithay/src/capture.rs):
- Each band is as wide as the image and has at most 4,194,304 pixels (16 MiB of readback) and at most the GPU side limit in rows. The last band has the rows that are left. So the height of the image is not bound to the GPU, only its width.
- Each render loop renders at most one band, offscreen and before the output, so the screen keeps its frame rate. A 64 megapixel image takes about 16 frames. The pointer stays on the screen during the bands; it is never in the image.
- The first band makes the plan: the area, the zoom, the scale, the image size, the window list and each placement. Every later band uses that frozen plan, with its placements moved up by the first row of the band. A camera move, a workspace switch, a layout toggle, the overview or a transition during the bands does not change the image and does not cancel it. The windows draw from their live buffers, so a content change between two bands (a resize, an animation, a video) can show a seam at a band edge: the old content above it and the new content below it. A window of the plan that closes after the first band ends the capture with "A window closed during the capture" and removes the file; the user takes the screenshot again.
- Each band goes straight to the temporary file
capture.tmpin the private directory (0600,create_new, so no link and no existing file). The compositor never holds the whole image. After the last band a rename makes itcapture.ppm, so the core never sees a partial image. - When the first band fails (the temporary file does not open, the GPU refuses the buffer, the readback or the write fails), the compositor removes the file, logs a warning, and the output frame of the same loop answers the request, so the user still gets a screenshot, at the zoomed size. When a later band fails, the capture ends with "Original-resolution capture failed" and the file is removed.
- A lock during the bands ends the capture at once with "Session is locked" and removes the partial file. No band is written after the lock: the lock ends the job before the next render loop, and each render loop checks the lock before it renders a band.
- A job ends with "Original-resolution capture timed out" and removes its file when it is still running 15 s after its first band (
ORIGINAL_DEADLINE), before the 20 s wait of the core. A paused session (a VT switch, when no render loop runs) ends any pending capture with "Session is inactive". So a stalled job never keeps the capture slot from the next screenshot or from "Mostrar ao agente". - The core waits up to 20 s for an original-resolution image (5 s for the output frame and a window). After a timeout it still waits, in the capture queue, up to 3 s for an image of its own generation and deletes it, so a late image does not stay in the private directory. It stops at once when the compositor ends the capture with an error or another capture starts.
- The image is a PPM (P6, RGB, opaque). The state reports
capture.originalwith the area (x,y,width,heightin logical pixels of the layout),zoomandlimited; it is null after an output frame. The core checks the image against it (the exact size, or at most that size with the aspect ratio of the area within 1% whenlimited) and uses it to map a region of the UI into the image: the region is cut to the area first, and the notification then adds "Região cortada à área do canvas." A region that is all outside the area (on a bar) gives "A região está fora da área do canvas." - Shift+Print on a Canvas workspace uses the default of the UI option: on. The key does not follow the last choice in the UI, because the key shows no state. The UI option is on again at each open.
- The UI shows the option on any Canvas workspace, also at zoom 1 or above, where it changes nothing. It never shows in the overview or on another layout, and the core never sends
originalfrom there.
Output
- Folder:
$(xdg-user-dir PICTURES)/Screenshots. The core readsXDG_PICTURES_DIRfrom$XDG_CONFIG_HOME/user-dirs.dirs(default~/.config/user-dirs.dirs). Without it, the folder is~/Pictures/Screenshots. The core creates a missing folder with mode 0700. - Name:
Captura de tela de YYYY-MM-DD HH-MM-SS.png, in local time, as GNOME Shell names it in pt_BR. When the name exists, the core adds-1,-2and so on. It opens withO_EXCL | O_NOFOLLOW, so it never overwrites a file and never follows a link. The file has mode 0600. - Clipboard: the compositor owns the selection. The core copies the saved PNG, in blocks, to
clipboard.pngin the private socket directory and sendsclipboard_image. A PNG above 64 MiB goes only to the file, and the notification adds "Grande demais para a área de transferência; salva só no arquivo." The compositor reads that file once (no link, at most 64 MiB, PNG signature), removes it and sets a data device selection with the MIME typeimage/png. It writes the bytes to each paste request on a thread, with at most 8 writers and a deadline of 10 s each. The paste descriptor becomes non-blocking and the thread waits for room withpoll, so a client that never reads loses its writer slot at the deadline. The selection stays until another client sets one. A primary selection is not set. - Notification: the core notification server shows "Captura de tela salva" with the file name, and "Copiada para a área de transferência." when the clipboard step worked. A failure from a key shows "Captura de tela não salva" with the reason, because no UI shows it.
Security boundary
- Only user input starts a screenshot: the keys above, a click in the protected UI, or the protected quick settings button.
- No agent tool, MCP entry, generated HTML, plugin panel or scheduled turn can start one, read one, or get the pixels. The
/api/screenshot*routes need the host token, which generated HTML and isolated panels never get./host-screenshotneeds the host main key. - Pixels never enter the state JSON, the logs or the model context. The UI gets only window ids, rectangles and titles. The core deletes the full-output PPM after it reads it.
- No screenshot while the session is locked. The compositor drops the keys and refuses
captureandclipboard_imagewith "Session is locked". A pending original-resolution capture ends the same way at the lock, also between two bands, and removes its partial file; the plan is empty while locked. A lock or a lost compositor closes an open UI without a save. A lock that comes after the frame gives no file and no clipboard: the core checks again after the read, before the save, before each block of rows of the encode, after the encode (it removes the PNG when the session locked) and before the copy. - The
capturecommand stays on the private control socket of the user. Authenticated maintenance tools that run as the user (execute_command) can reach that socket, as before. The consent flow binds the agent tools, not a prompt-injected agent with a shell; see openspec/specs/self-maintenance/spec.md.
Multiple outputs (2026-11-04)
capabilities.outputScreenshots enables monitor selection. Without it the core keeps the primary-output behavior. The host long poll names an extra connector only for an extra-output UI; the host recreates the capture panel when the connector changes, preserving the immutable output of each token. Only /host-window with the host main key can declare an output for the protected screenshot panel. Other panels and isolated plugins cannot use this field. The compositor places and hit-tests that panel on its declared output, including an extra output without a workspace.
Extra outputs use their composed frame. Their UI does not offer original resolution, because the compositor currently supports original-resolution Canvas captures only on the primary output. Capture permissions, lock refusals, the shared capture queue and deletion of temporary pixels stay the same.
Regression checks: node --test web-shell/test/screenshots.test.js web-shell/test/panel-windows.test.js web-shell/test/window-declarations.test.js covers secondary-output routing, region pixels, shared-window coordinates, focus changes, unplug and token replacement. python3 scripts/prepare-project.py --root . --cargo test --locked screenshot covers protected panel placement on a synthetic extra output and refusal of other panels, plugins and unknown connectors. Physical monitors and the running session still need user validation.
Version skew
The core checks capabilities.screenshots of the compositor. A compositor from before this change has no such capability: the keys do nothing, the UI does not open, and the quick settings button shows "O compositor em uso ainda não oferece capturas de tela. Elas chegam no próximo login." A core from before this change does not know the kinds screenshot_ui, screenshot_screen and screenshot_window: after a Print press its validState throws, the core disconnects, and the compositor keeps the request until a core acknowledges it. This is the same limit as chat_focus (docs/smithay-development.md). Do not pair an older core with this compositor; roll back the whole checkout and log in again.
The original resolution needs capabilities.screenshotOriginal. The core sends original only to a compositor that reports it, so an older compositor never sees the field (its deny_unknown_fields would refuse the command), and the UI does not show the option.
The Electron host and the core of one checkout go together. A host from before this change never polls /host-screenshot, so Print and the quick settings button open nothing on screen (Shift+Print and Alt+Print still save). A new host with an older core gets an error from /host-screenshot; the host logs each new error text once and tries again each second. Restart the host and the core together, from the same checkout.
The migration step .web-panels-protected-v3 adds the screenshot declaration once to an existing web-panels.json. A user who removes it later keeps it removed.
Not tested
- The live session, the DRM backend and a real paste from an application. Nested QA covers the winit backend with one output historically and two outputs in the focused 2026-11-04 report.
- Multiple physical outputs, and output scales other than 1. Synthetic two-output regression tests cover core routing and compositor panel placement.
- A window capture of a window with subsurfaces or popups beyond what the nested clients draw.
- The original resolution at output scales other than 1: the image is in logical pixels of the layout, and a client buffer at scale 2 is drawn at scale 1.
- The bands of the original resolution on the DRM backend, a GPU with a side limit below the image height, and a window that draws new frames during the bands (a video): the nested QA uses the winit backend and static windows.
Two-output nested QA (2026-11-04)
Private run 0d2504f3, two 924x984 outputs at scale 1: Print panel placement and cancellation on both monitors, secondary screen/region/window captures, Alt+Print, Shift+Print, return to primary and capture pinned after a focus-output change passed. Temporary pixels were removed after user capture. See the focused report for evidence, unrelated findings and untested cases. The run was stopped without restarting the live runtime.
Overview and cancellation fixes (2026-11-07)
The protected screenshot panel on the primary output remains visible and can receive focus over the workspace overview. Its identity comes from the bound protected declaration, independently of whether it names an extra connector. Other panels and isolated plugins keep their existing overview visibility. Opening the UI still captures no pixels.
A repeated Print can reopen the same visible document with a new generation,
without a browser visibility event. Escape and the close button now read the
current UI generation before asking the core to close it. The core keeps its
stale-generation rejection, including a reopen racing that read. A synthetic
browser reproduction and test/screenshot-ui.test.js cover cancellation;
protected_primary_screenshot_stays_visible_and_focusable_over_workspace_overview
covers visibility, focus and the refusal to treat an isolated panel as the
protected capture UI. No capture or image readback is needed for these checks.
For the reported live-session blockage, the host closed only the stuck panel through its existing registry refresh: its entry was temporarily withdrawn and the original configuration restored byte for byte after the compositor confirmed unmapping. No compositor, host or core restart and no screenshot was performed.
Binding contract (from AGENTS.md)
This section holds, word for word, the rule that AGENTS.md kept for this feature until 2026-11-10,
when AGENTS.md was reduced to the short invariants (openspec/changes/audit-2026-11-10/design.md, F10). It binds
exactly as AGENTS.md does; AGENTS.md keeps the short invariant and points here. Change both in
the same commit.
- User screenshots (openspec/specs/screenshots/spec.md): only user input starts one: Print, Shift+Print and
Alt+Print in the compositor, a click in the protected
screenshotpanel, the protected quick settings button, or the pointer in a hot corner that the user set toscreenshot(it only opens the capture UI, openspec/specs/hot-corners/spec.md). No agent tool, MCP entry, generated HTML, plugin panel or scheduled turn can start one, read one or get the pixels; pixels never enter the state JSON, logs or the model context, and the core deletes the full-output PPM after it reads it. No screenshot while locked, and a lock during the UI closes it without saving.