
Screenshot Organizer: Find Screenshots by Keyword
A screenshot organizer that gives every capture one keyword. How to organize screenshots on macOS and Windows, and why a word beats a timestamp.

We almost shipped base64. The MCP spec allows it: a tool result can carry an image block with base64 data and a mimeType. The best practice for an MCP server that makes images runs the other way. Return a file path or a resource_link with metadata, and let the client read the pixels only when the task needs them. A path costs about thirty tokens. A 1080p screenshot costs Claude 1,560 visual tokens or more, on every request while it stays in the conversation.
Every author of an image-producing MCP server makes this decision in the first hour, usually without noticing. The "obvious" answer is to return the image. Obvious, here, means nobody ran the token math. The screenshot MCP server in Heretic Lazy Shot ships 23 tools (7 capture, 8 manage, 5 markers, 3 OCR) and every one of them returns a file path instead. That's a hard contract, not a habit.
This sounds like a minor detail. It decides cost, latency, reliability, and which workflows are possible at all.
The current MCP spec gives a tool result four ways to carry an image, or point at one:
{ "type": "image", "data": "<base64>", "mimeType": "image/png" }. The bytes travel inside the result. Audio uses the same shape.{ "type": "resource_link", "uri": "file:///…", "name": "…", "mimeType": "…" }. A URI the client can fetch or subscribe to. The spec warns that a linked resource need not appear in resources/list.resources capability.structuredContent, validated against the tool's outputSchema when one exists, and mirrored as serialized JSON in a text block for older clients.Only the first one ships pixels by default. The spec offers the image block. Offering isn't recommending.
Claude Code shows an image result to Claude inline, scaled down or compressed to fit the model's limits. From v2.1.283 it also saves the original bytes to a file in the session's tool-results folder and gives Claude the path. Image results count against MAX_MCP_OUTPUT_TOKENS, 25,000 tokens by default, and the transcript viewer warns past 10,000.
Text gets the same treatment. A text result longer than 50,000 characters goes to a file, and Claude sees a message naming the path.
So the client already turns oversized payloads back into paths. That's not a feature of base64. It's the client cleaning up after the server. Other clients don't promise the same cleanup, and a server written for the cleanest client breaks on the next one.
Start with the naive path. A capture_screen tool grabs a display and returns the PNG as base64 inside the tool result.
A routine full-screen capture weighs 500 KB to 2 MB. Base64 inflates bytes by a third, so the tool result becomes 670 KB to 2.7 MB of text landing in the conversation as one payload. If the client treats it as text, that's well past a hundred thousand tokens for a single screenshot. One image can swallow most of a context window by itself. The workflow doesn't degrade. It dies, unless the client rescues it.
The less naive path sends a proper image block to the model's vision input. Better. Anthropic's vision docs price a 1920×1080 screenshot at 1,560 visual tokens on standard-tier models, which downscale it, and 2,691 on Claude 4.7 and later, which keep the full resolution. A 4K display capture reaches 4,784. Capture ten screens in a batch job and the bill runs 15,600 to 47,840 tokens for pixels the agent may never look at. Add the cost of pushing megabytes over a protocol built to be lightweight.
Now the file-path version of the same call:
{
"id": "a1f3…",
"keyword": "checkout-cart",
"file_path": "~/.heretic-lazy-shot/screenshots/2026-07-27_checkout-cart.png",
"width": 2560,
"height": 1440
}
Call it thirty tokens. The agent knows the capture worked, knows where the file lives, knows its geometry. It can hand the path to a doc generator, an upload step, another tool, or the model's own vision, if and when reading the image is actually required.
Base64 as a default isn't a convenience. It's a tax.
Sending pixels to an agent that asked for a path is delivering the whole lumber yard when the carpenter wanted a hammer.
The whole design rests on one observation: most agent operations on screenshots don't need to see them.
Walk a real documentation workflow. Capture a window, name it, place numbered markers, insert it into a guide. Four operations. Zero of them require the model to see a pixel. Capture returns metadata. Naming is a library operation. Markers take coordinates or a preset. Insertion takes a path. The image gets referenced, organized, and transformed. Not interpreted.
Interpretation is real, and it's the minority case. Naming a shot doesn't need vision. Asking whether the submit button is visible does. The client reads the file and feeds it to the model's vision exactly once, exactly when asked.
Pixels are a last resort, not a default. Base64-by-default gets the order backwards and charges every operation the full price of the rare one.
A file-path contract only works if the agent can trust the paths. That drags two less glamorous decisions into scope.
Errors come structured and honest. Every Lazy Shot MCP tool fails with a structured MCP error, not prose. When the optional Window Activity Tracker is off, the tracker-dependent tools (list_tracked_windows, capture_tracked_window) return a clean feature_disabled error. The tempting alternative is to return an empty list and stay quiet. That reads as success and sends the agent down a false branch.
An empty list isn't a graceful fallback. It's a lie with good manners.
An agent recovers from a named error. It never recovers from a plausible lie.
The MCP spec draws the same line. Tool execution errors come back in the result with isError: true and text the model can act on. Clients should pass them to the model so it can correct itself and retry.
Every operation leaves a trail. A batch job fails at 2 a.m. We open ~/.heretic-lazy-shot/logs/. One rotating session log per app run, heretic-lazy-shot_<timestamp>.log. The MCP lines carry a [MCP] tag: TOOL_CALL with the parameters, then TOOL_OK with a duration or TOOL_FAIL with the error. We find the server start, the port conflict, the tool call, the failure. The transcript exists.
That transcript exists because the results are small. Paths log cleanly. Base64 doesn't. When every tool result is a short line of metadata, logging everything costs nothing, and the log stops being the first thing that breaks under load.
The file-path pattern has a real precondition: the tool and the client share a filesystem. Lazy Shot's MCP server runs on localhost next to the desktop app, so a path under ~/.heretic-lazy-shot/screenshots/ means something to every consumer. Break that assumption and the trade-offs move.
resource_link, or a claim-check ID. Still reference, not payload, with different plumbing. Base64 becomes the last resort when no shared substrate exists at all.resource_link blocks or claim-check IDs across machine boundaries. Payloads only when no reference substrate exists.ocr_screenshot, ocr_image_path, list_ocr_languages) for exactly this: reading on demand, over a reference.checkout-cart. Costs nothing. Changes how usable the library is, for agents and for the people who organize screenshots by keyword.feature_disabled for anything behind a flag. Empty success is a lie.Heretic Lazy Shot's MCP server is the working proof of the pattern: 23 tools across capture, library management, markers, and OCR. Every one returns paths and metadata. Keyword recall, forking transformations, structured errors, full logging, all of it running locally next to the desktop app humans use on the same library.
The design isn't clever. It's the token math taken seriously.
If you build an image-producing MCP server, steal the checklist. If you'd rather use one, the full tour of Lazy Shot's screenshot MCP server for Claude Code and Claude Desktop is here. Either way, count the tokens first.
Checked on 2026-11-21.
Heretic Lazy Shot is a screenshot, annotation, and beautification tool for macOS and Windows, built for humans and agents. One-time license: €14.99 for one device or €29.99 for three. No subscription, no account, no telemetry on content. Activation is online, with an offline grace period after. The trial ships inside the download, no card. Try Lazy Shot →

A screenshot organizer that gives every capture one keyword. How to organize screenshots on macOS and Windows, and why a word beats a timestamp.

Lazy Shot can pin zero screenshots on top of other windows today. We audit the stub, the alt-tab tax it was meant to kill, and how Snipaste does it.

Claude Code takes a screenshot three ways: paste, drag, or a file path. A screenshot MCP server lets Claude Code and Claude Desktop capture it themselves.