LAPLink Action
Protocol
Tiếng ViệtVI

Krita plugin · open source

Any AI can draw in Krita with a single link.

ChatGPT, Claude or Gemini writes a link with drawing steps: layers, shapes, gradients, strokes, text. Opening it shows the picture before and after; when you confirm, Krita opens the result as a new document with every layer, ready for you to keep painting. The original stays as it was and no file is overwritten.

Download the pluginSee how it works

v0.1.0 · 28 KB, Krita 5 or later · Guide for AI · Source code

  1. Say what you want drawn

    Or share the open document with Tools › Scripts › LAP · Chia sẻ tài liệu đang mở (share the open document) so the AI sees its size and layers (never the file name or path).

  2. The AI writes a link

    127.0.0.1:8796/create?ops=layer:sky;gradient:navy/teal;layer:sun;ellipse:440/100/180/180,color=coral

  3. See before and after, confirm

    The page on your computer draws it in the browser first. Confirming opens a new layered document in Krita; close that tab to drop it.

Install in a minute

  1. Download lap_krita.zip.
  2. In Krita: Tools › Scripts › Import Python Plugin from File and pick the zip.
  3. Enable LAP Krita in Settings › Configure Krita › Python Plugin Manager, then restart Krita.
  4. Choose Tools › Scripts › LAP · Mở trang xem trước (open the preview page): http://127.0.0.1:8796 opening means it is ready.

Try it while Krita is open

These links open the preview page on your computer. Nothing changes until you confirm.

With Claude Code and agents on your computer

The agent reads http://127.0.0.1:8796/llms.txt, the documents you shared at /documents.txt and the operations and colours at /commands.txt. It opens links with &lap=json to see problems and fixes, but always hands you the final link: this version gives agents no permission to apply by themselves.

What the AI can do

Operations
layer rect ellipse line polygon stroke gradient text opacity visible move blend duplicate
Named colours
navy teal coral cream gold white black transparent
Blend modes
normal multiply screen overlay
Limits
Canvas 32 to 2048 px, at most 32 layers and 100 operations per proposal.

Safety

  • The plugin listens on 127.0.0.1 only: other computers and other websites cannot send it anything.
  • Opening a link only previews; confirming needs the plugin's own preview page (same origin, CSRF token, idempotency key).
  • The result is always a new document; the original is not changed and no file is saved over.
  • No Python runs, no paths are opened, nothing is downloaded. Words in the picture stay after the #, out of server logs.