Delete an agent conversation
delete_agent_sessionPermanently deletes one Studio, Workflow Agent, or deployed-agent session and resets its memory so the next message starts fresh; previews deletion unless confirmed.
Instructions
Permanently delete one conversation (session) with Studio, the Workflow Agent or one of your deployed agents, and reset the agent's memory of it so the next message in that session starts fresh. Without confirm: true it only describes what would be deleted; ask the user before confirming. A turn that is still running is deleted too; to stop it instead, cancel it first with cancel_agent_message (get_agent_conversation with the session shows whether one is running). Studio keeps a display name the session was given on wiro.ai. The Workflow Agent's "default" session cannot be deleted. The files models made and saved workflows stay. Deleting a Studio session can also take its model runs out of list_studio_results, so read their results and costs first if they are still needed.
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": {
"agent": "<agent>",
"session": "<session>"
},
"name": "delete_agent_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Which agent: "studio" (Wiro Studio, the media agent that runs models for you), "workflow-agent" (the Workflow Agent, which designs Wiro workflows) or the guid of one of your deployed agents (from list_my_agents). | |
| confirm | No | Set to true only after the user agreed to the permanent deletion. | |
| session | Yes | The session to delete (from get_agent_conversation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| deleted | Yes | ||
| session | Yes | ||
| summary | Yes | ||
| agentKind | Yes | ||
| nextAction | No | ||
| memoryReset | Yes | ||
| messageCount | No |