Cancel the running chat
dreamagent_cancel_chatDESTRUCTIVE — stops an AI edit that is currently running. Use ONLY when the user explicitly asks to stop/cancel the active edit. After cancellation, do NOT claim the requested change was completed — report that it was stopped.
Returns 'Cancellation requested: ' — e.g. 'Query cancelled', 'Cancellation requested' (durable run), or 'No active query found'. Afterwards poll dreamagent_get_chat_status / dreamagent_get_edit_progress until run_status reports 'cancelled'.
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": {
"session_key": "<session_key>"
},
"name": "dreamagent_cancel_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_key | Yes | the session key of the running edit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |