Close a terminal session
terminal_closeTerminate a terminal session and remove it from the session list, stopping any child processes running in its process group. Use it to clean up sessions and prevent orphaned processes.
Instructions
Terminate a session and remove it from the session list. Running child processes in its process group are stopped too.
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": {
"id": "<id>"
},
"name": "terminal_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id (for example "term_1a2b3c4d") or the friendly name given at spawn time. |