Agent Chat: Delete agent chat session
delete_agent_chat_session Delete one of the user's AI assistant chat sessions, including
every message in it.
This is irreversible — the cron-driven 90-day retention sweep
does the same thing for old sessions, but this tool is for users
who want to clear a session immediately (e.g. they shared
context they no longer want stored). The persistent main
conversation thread can't be deleted.
Args:
session_id: The chat session's ID.
Returns:
``{"success": True, "deleted_session_id": ..., "deleted_messages": N}``
or ``{"error": "..."}``.
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_id": "<session_id>"
},
"name": "delete_agent_chat_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |