cs_agent_destroy
Destroy a managed agent after its work is complete or abandoned, optionally cascading through descendants and discarding the session to release resources.
Instructions
Destroy a managed agent after its work is complete or abandoned, optionally cascading through descendants and discarding its session. This releases the managed lifecycle and is destructive.
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": {
"agentId": "<agentId>"
},
"name": "cs_agent_destroy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Managed agent id to destroy. | |
| cascade | No | Also destroy all live descendants; required when descendants still exist. | |
| discardSession | No | Also discard the persisted ACP session instead of keeping resumable state. |