WRITE ACTION — builds, modifies, or fixes an EXISTING project with
a natural-language instruction. Use ONLY when the user clearly asks
for a change ("add X", "fix Y", "change the theme"). If the user is
only asking for advice, analysis, review, or suggestions ("what
could be improved?", "review my bot"), do NOT call this — answer
from the project's info instead; a review request is not an edit.
Describe ONLY the desired change — DreamAgent's AI automatically
handles code, tests, rebuild, and redeployment. Completed changes
are saved and committed automatically.
ASYNCHRONOUS: returns immediately with the session_key; monitor
with dreamagent_get_edit_progress (or dreamagent_get_chat_status
with the returned session key) until a terminal state. A run has
succeeded only once run_status reaches 'completed'. Each edit
consumes AI usage from the account's plan.
ERRORS: failures are returned as tool errors. If the edit was
rejected before starting, the message says 'the edit was NOT
started' plus the reason — HTTP 402 insufficient usage allowance,
409 another edit already active, 423 session lock held by another
session, 404 wrong project id, 401 no account connected.
ONE EDIT AT A TIME: the API rejects a second concurrent edit on the
same project (409); check progress and wait for the current edit.
SUPERPOWERS: projects can use the account's enabled add-on AI
tools. To add or use one, name the feature in the message —
DreamAgent's agent knows the enabled tools and wires the
integration, UI and job handling automatically. Check the catalog
with dreamagent_list_superpowers; disabled tools are enabled at
dreamagent.cloud → Superpowers.