Import images by URL or binary upload (no base64)#9
Merged
Conversation
Symmetric to deliver:'url' for output. Image inputs (screenshot/background/ element) now also accept: - http(s) URL — the server fetches the image - appscreen-file://<id> — a reference from the new POST /upload endpoint, which takes raw image bytes (no base64) and stores them in the TTL filestore; the ref is resolved straight from memory (no round-trip), auto-deletes after ?ttl. This lets a Mac push a large screenshot to a remote server without embedding a giant base64 blob in the MCP request. README documents the upload flow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Embedding a large input image as base64 in the MCP request is too heavy. This adds two lightweight ways to send images in, mirroring the
deliver:'url'output feature.What
Image fields (
screenshot.image,background.image,elements[].image) now also accept:appscreen-file://<id>— a reference returned by the newPOST /uploadendpoint, which accepts raw image bytes (no base64) and stores them in the TTL filestore. Resolved straight from memory (no HTTP round-trip), auto-deletes after?ttl(default 3600s).(data URL, raw base64, and server file path still work.)
Verified
This is the recommended Mac → remote server path for large screenshots, and works through the Cloudflare Tunnel.
🤖 Generated with Claude Code