terminal_close
Close a terminal session and kill its underlying process by session ID, including safe cleanup when the session is already closed.
Instructions
Close a terminal session and kill the underlying process. Idempotent — safe to call on already-closed sessions.
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": {
"session_id": "<session_id>"
},
"name": "terminal_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID returned by terminal_spawn |