MCP

Let an AI Agent Edit Photos in Your App

The user taps Agent, copies the link the editor makes and pastes it into their AI agent over MCP: Claude, ChatGPT, Perplexity, Grok, Claude Code or Cursor. The agent edits the photo open in your app with the editor's own commands, and the user watches every change land. Our relay sits between the tab and the agent, or one you run.

A buggy tour stopped on a desert hill, edited for a tour page by the agent: the guests' faces blurred, the title Desert Loop in yellow caption letters, a black Sunset Stop card, a 2 km ruler to the ridge road, a magnifier on the next group and the rides numbered in a list, the dot on the editor's Agent button saying an agent is connected and the photo's edge glowing

A still of the editor with an agent connected: the agent edited the photo for a tour page, and the photo's edge glows while it works. Photo by Mohamed Abira on Unsplash.

What It Does

What MCP Gives Your Users

An AI agent over MCP on a desert stop of a buggy tour: Agent tapped, How to Connect opened and closed, the link copied, then the agent connects and, in one request while the person watches, hides the guests' faces with Detect and covers the ones it missed, removes the power poles, crops the empty gravel and adds punch, then titles the tour Desert Loop in yellow caption letters, marks the Sunset Stop on a black card, measures 2 km to the ridge road with a ruler, shows the next group in a magnifier and numbers the rides in a list, the photo's edge glowing while it works
The user taps Agent and copies the link. Their agent connects and, in one request while they watch, hides the guests' faces with Detect, removes the power poles, crops and lifts the light, then titles the tour, marks the stop, measures the climb with a ruler, shows the next group in a magnifier and numbers the rides, the photo glowing as it works.
  • Manual editing: Processed in your browser.
  • AI: Your app sends the necessary data to the services you configure.
  • MCP: Commands and screenshots pass through the configured relay between the editor and the connected agent.

Details: AI data flow · MCP privacy

The Editor's Own Commands

The agent gets the commands this editor can run, each with its description and its input as JSON Schema: annotate, hide areas, adjust, filter, crop, frame, undo, and Save when the user asks.

One Undo Step per Command

Every edit command the agent runs is one undo step, as the user's own gestures are, so the user's Undo takes back the agent's last edit.

Screenshots to Check Its Work

It sees the edit as Save makes it, the whole photo or a zoom, as a JPEG of at most 1024 px, with a note that maps its px to the image px every command takes.

Only What Your Editor Has

A tool you turned off isn't listed, and the user's own controls stay theirs: the selection, the tool, the menu and the view. The agent sees nothing outside the editor.

A Link That Ends

On Disconnect, when the tab closes, 2 hours after it was made, or 2 minutes after the tab went away. The panel says why, with Connect Agent for a new link.

In Code

The Props That Control It

PhotoEditor.tsx

import { EmbedEditor } from '@embededitor/full/react';

const PhotoEditor = ({ src }: { src: string }) => (
	<EmbedEditor
		enableAgent
		publicKey='ee_pk_…'
		src={src}
	/>
);

export default PhotoEditor;
enableAgent

Shows the Agent in the toolbar, with Copy and Share in their menu where they're on. The editor asks the relay for the link, and How to Connect shows the user the relay's MCP address.

publicKey

Your license's public key, ee_pk_…, which our relay asks for before it makes a link. Your account shows it, and you restrict it to your sites there.

agentRelay

The origin of a relay of your own. Without it, the editor links through ours, at agent.embededitor.com.

onAgentLink

On a relay of your own, makes the link through your backend, which asks the relay with its secret, so each link belongs to a signed-in user.

Every prop in the docs.

Use Cases

Where It Fits

Marketplace Listings

A seller asks their agent to blur the faces and the plate and crop to the listing's shape, and checks the result before Save.

Travel Guides and Maps

Labels with arrows on the summit, the station and the old town, placed by the agent on a 3000 px photo.

Edits in One Sentence

Straighten it, brighten it and put it in a frame, asked in one sentence instead of found control by control.

Editing by Describing It

People who find small handles hard to drag describe the edit instead, and still see and undo every step.

FAQ

Questions

Which AI agents can use the link?

An MCP client that has the relay connected, once, as an MCP server. The editor's How to Connect shows the user how in Claude, ChatGPT, Perplexity and Grok on the web, and in Claude Code, Codex, Cursor and VS Code. It was tried with Claude Code, with Claude Sonnet and Opus, with Codex, and with ChatGPT on Plus. On the web, the relay's address goes in as a custom connector or MCP server with no sign-in.

Who can drive the editor with the link?

Anyone with the link, until it ends: the link is the authentication, a 256-bit token the relay keeps only as a hash. The user pastes it only into their own agent. Two chats with the same link drive the same editor, and Disconnect ends it for both.

What does the agent see?

Screenshots of the edit as Save makes it, the whole photo or a zoom, and what each command gives back as text. Nothing outside the editor: no part of your page, no other tab, none of the user's files. A file the editor makes reaches it as its name, type and size.

Does the agent save the photo?

Only when the user asks: its guide says so, and output_save calls your onProcess as the user's Save does. Before that, every edit is one undo step the user can take back.

Who runs the relay?

We do, at agent.embededitor.com: the editor links through it unless you give it a relay of your own. To run yours, install @embededitor/relay from npm and run it on your own server, following the step-by-step guide in the docs, or build one from the protocol, documented whole. On your relay, only your pages, or your backend with its secret, can make a link.

How long does a request take?

In the trials, about 20 s with Claude Sonnet and 35 s to a minute with Opus, almost all of it the model's own time. A command reaches the editor and comes back in 10 to 340 ms.

Connect an agent to your editor.

Give the editor enableAgent and your license's public key: it links through our relay, and its How to Connect shows each user how to connect their agent once. The docs take each step, with a relay of your own and a backend route that makes links for signed-in users.

More features: Crop, Filters, Annotations, Obfuscate, Watermark, Large Photos, White Label, AI.