Skip to content

feat: add import_from_excalidraw tool to decrypt and restore shareable links - #102

Open
h0tp-ftw wants to merge 1 commit into
excalidraw:mainfrom
h0tp-ftw:feat/import-from-excalidraw
Open

h0tp-ftw wants to merge 1 commit into
excalidraw:mainfrom
h0tp-ftw:feat/import-from-excalidraw

Conversation

@h0tp-ftw

@h0tp-ftw h0tp-ftw commented Oct 17, 2026 •

Copy link
Copy Markdown

Overview

This PR adds the import_from_excalidraw tool to allow LLMs/agents to fetch, decrypt, and load existing shareable Excalidraw drawings (https://excalidraw.com/#json=<id>,<key>).

Key Changes

  • import_from_excalidraw tool: Takes an Excalidraw share link or #json=<id>,<key> hash.
  • Client-side Decryption: Uses Node/WebCrypto AES-GCM (128-bit key) and zlib decompression to extract the scene JSON directly from https://json.excalidraw.com/api/v2/<id>.
  • Automatic Checkpoint Registration: Saves imported elements into the MCP CheckpointStore and returns a checkpointId. This allows callers to immediately edit or add elements via create_view with restoreCheckpoint.
  • README: Added prompt example demonstrating how to pass a share link and request edits.
@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

@h0tp-ftw is attempting to deploy a commit to the Excalidraw Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant