Start a new chat with an agent
clear_contextClears an agent's conversation history to start a fresh provider session on the next turn, while keeping instructions, model, tools, memories, and workspace intact.
Instructions
Same as New chat: the agent forgets the conversation and its next turn starts a fresh provider session. Instructions, model, tools, memories and workspace stay. 409 while the agent works or has queued messages — wait and retry.
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>"
},
"name": "clear_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent ID or agent name (case-insensitive), as list_agents shows it. |