terminal_close
Terminate an active terminal session and end all running processes within it. Optionally save command history for future restoration.
Instructions
Close terminal session
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": {
"terminal_id": "<terminal_id>"
},
"name": "terminal_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terminal_id | Yes | Unique terminal ID from terminal_create or terminal_list. All processes in this terminal will be terminated. | |
| save_history | No | Whether to save the command history before closing. History can be restored when creating future terminals. |