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
onAiChooseCommandsgets, 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; andguideLanguage, which names the editor’s language last. - The lines a request adds to the person’s words:
requestAnnotatebefore an Annotate request’s,requestRecreatefor another composition,requestAreaandrequestAreasafter a request about one area or several,requestWholePhotoandrequestBackgroundafter a request about the whole photo or the new background. A line about areas ends with its rule:ruleMarkfor the person’s mark,ruleHostAreafor an area your code names inask.send(). - What your other functions get:
expandBorders, thepromptonAiEditImagegets for an Expand, anddetectFace,detectLicensePlate,detectDocumentanddetectScreen, thetextsonAiDetectObjectsgets, 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), thenguidePersonMark, which only it is told, andguideLanguage. 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.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 asaiPrompts.
prompts.ts
{ 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:
detectDocument
detectDocument
Detect, in Obfuscate: the documents to find, one of the
texts onAiDetectObjects gets.detectFace
detectFace
Detect, in Obfuscate: the faces to find, one of the
texts onAiDetectObjects gets.detectLicensePlate
detectLicensePlate
Detect, in Obfuscate: the license plates to find, one of the
texts onAiDetectObjects gets.detectScreen
detectScreen
Detect, in Obfuscate: the screens to find, one of the
texts onAiDetectObjects gets.expandBorders
expandBorders
Expand: the
prompt onAiEditImage gets for 'GENERATE_BORDERS', what to put in the borders.guideArtDirector
guideArtDirector
The guide, after
guideBase, while Annotate’s commands are offered: the art director’s level, how the AI composes annotations.guideBase
guideBase
The guide: the rules every model meets, the editor’s own AI and an agent linked from outside.
guideEditorAi
guideEditorAi
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.
guideLanguage
guideLanguage
The guide’s last line, naming the editor’s language, which the texts the AI writes fall back on.
guidePersonMark
guidePersonMark
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.requestAnnotate
requestAnnotate
Annotate mode: the line before the person’s words.
requestArea
requestArea
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.requestAreas
requestAreas
A request about several areas: the line after the person’s words, with their boxes and their rule.
requestBackground
requestBackground
A request about the new background, after Remove Background: the line after the person’s words, with its box.
requestRecreate
requestRecreate
Annotate mode’s Generate on its last request: the words that ask for another composition.
requestWholePhoto
requestWholePhoto
A request
ask.send() makes about the whole photo ({ kind: 'ALL' }): the line after the person’s words, with its box.ruleHostArea
ruleHostArea
The rule a request about an area your code names (
ask.send()’s 'RECT' or 'POLYGON') ends with.ruleMark
ruleMark
The rule a request about the person’s mark ends with, and an outside agent’s
guidePersonMark too.