Home / Projects / NiPlex-Harness / Tools / Terminal and Python sandbox tools / set_terminal_lifecycle

Pictures

set_terminal_lifecycle

Kill, keep alive or clear history of a terminal.

Since 2 Sept 2026

Only changes the in-memory session record.

Tool name
set_terminal_lifecycle
Group
Terminal and Python sandbox
Risk
low
Needs approval
never
Approval rule
No approval.
Allowed in scheduled jobs
No
Default
on

Parameters

NameTypeRequiredDefaultMeaningLimits
terminal_idstringYesId of a terminal session. Omit to use the first one.
actionstringYesWhat to do.One of: kill, keep_alive, reset_history.

Returns

A confirmation.

Example (made up for this page)

Call
{
  "terminal_id": "demo",
  "action": "kill"
}
Result
Terminal t1 killed

Side effects

  • Marks a terminal dead or clears its history.

How it can fail

WhenWhat the agent sees
Unknown terminalTerminal t9 not found
Unknown actionUnknown action ...

Checked against the source at commit f4fd89f on 29 Oct 2026. Everything here is merged on the main branch; no release has been tagged yet. The source is private, so these pages are the public description.