Chat with the project agent
dreamagent_chatWRITE 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"message": "<message>"
},
"name": "dreamagent_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | the desired change (what + any behavioral constraints). | |
| project_id | Yes | the project to modify. | |
| new_session | No | optional — start a fresh session for a new topic. | |
| session_key | No | optional — continue a specific development session. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |