Skip to main content
Every prompt the editor sends a model has a key, and the aiPrompts prop replaces any of them with your own text, as lang.texts replaces the editor’s messages.
The Full and the Trial send every prompt below. The Lite, which has MCP but no AI of its own, sends only the guide its linked agent is told: guideBase, guidePersonMark with ruleMark, and guideLanguage. The Free has neither, and accepts aiPrompts and ignores it.

What It Covers

  • The guide, the system message onAiChooseCommands gets, in this order: guideEditorAi, the editor’s own AI’s lines; guideBase, the rules every model meets; guideArtDirector, the art director’s level, while Annotate’s tools are offered; and guideLanguage, which names the editor’s language last.
  • The lines a request adds to the person’s words: requestAnnotate before an Annotate request’s, requestRecreate for another composition, requestArea and requestAreas after a request about one area or several, requestWholePhoto and requestBackground after a request about the whole photo or the new background. A line about areas ends with its rule: ruleMark for the person’s mark, ruleHostArea for an area your code names in ask.send().
  • What your other functions get: expandBorders, the prompt onAiEditImage gets for an Expand, and detectFace, detectLicensePlate, detectDocument and detectScreen, the texts onAiDetectObjects gets, in that order.
  • An agent over MCP, told the same guide with the commands, in the Lite too: guideBase, guideArtDirector (in the Full and the Trial), then guidePersonMark, which only it is told, and guideLanguage. Your prompts reach it as they reach the editor’s own AI.

Your Own Prompts

Pass any of the keys, each one a string that replaces that prompt whole. A key you leave out keeps the editor’s own.
Each prompt is read key by key: yours, else the editor’s. A new value reaches the next request: a conversation under way gets the guide as it stands then, and a linked agent is sent it again. An object written inline in a render is fine. The editor compares it by value, so a new object with the same content re-renders nothing. AiPrompts and AiPromptKey are exported to type your prompts.

Start from the Editor’s Own

The editor’s own prompts ship as JSON, with every key and its text. Copy it, change what you want, and pass it as aiPrompts.
prompts.ts
Some prompts have { name } placeholders, such as { box } in requestWholePhoto. Keep exactly the editor’s placeholders, in whatever order your text needs. The editor fills them in. A brace around anything but one word, like { "kind": "MARK" }, is text, not a placeholder. The editor’s own prompts are in English, which the models follow best, and Detect’s texts are in English for the models that find them.

What Is Invalid

aiPrompts is validated like every other prop. The error screen names the problem, onLoadError receives an INVALID_PROPS error, and the editor sends its own prompts until the value is valid.

Every Prompt

Each prompt’s default, whole, as the editor sends it with no aiPrompts:
Detect, in Obfuscate: the documents to find, one of the texts onAiDetectObjects gets.
Detect, in Obfuscate: the faces to find, one of the texts onAiDetectObjects gets.
Detect, in Obfuscate: the license plates to find, one of the texts onAiDetectObjects gets.
Detect, in Obfuscate: the screens to find, one of the texts onAiDetectObjects gets.
Expand: the prompt onAiEditImage gets for 'GENERATE_BORDERS', what to put in the borders.
The guide, after guideBase, while Annotate’s commands are offered: the art director’s level, how the AI composes annotations.
The guide: the rules every model meets, the editor’s own AI and an agent linked from outside.
The guide’s opening, for the editor’s own AI alone: who it is, one short sentence of what it is doing before each action, its plan kept in its thinking, the language of its answer, its last sentence.
The guide’s last line, naming the editor’s language, which the texts the AI writes fall back on.
The person’s mark, in the guide of an agent linked from outside alone: how to read what the person marked. It ends with ruleMark.
Annotate mode: the line before the person’s words.
A request about one area, the person’s mark or one ask.send() names: the line after the person’s words, with its box and its rule.
A request about several areas: the line after the person’s words, with their boxes and their rule.
A request about the new background, after Remove Background: the line after the person’s words, with its box.
Annotate mode’s Generate on its last request: the words that ask for another composition.
A request ask.send() makes about the whole photo ({ kind: 'ALL' }): the line after the person’s words, with its box.
The rule a request about an area your code names (ask.send()’s 'RECT' or 'POLYGON') ends with.
The rule a request about the person’s mark ends with, and an outside agent’s guidePersonMark too.