Delete agent
delete_agentDelete an agent. Refused while anything uses it — a widget, a channel or phone number, a schedule, a workflow's step or another agent that hands work to it — naming each. Cannot be undone: the first call previews what goes (or says what still uses it) and gives a confirm_token; call again with the same arguments and that token to delete.
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_id": "<agent_id>"
},
"name": "delete_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| confirm_token | No | Leave out at first: the answer previews what this would do and gives a token. Call again with the same arguments and that token to do it. |