The command is killed if it hasn't exited yet. Use terminal/wait_for_exit
to wait for the command to exit before releasing the terminal.
After release, the TerminalId can no longer be used with other terminal/* methods,
but tool calls that already contain it, continue to display its output.
The terminal/kill method can be used to terminate the command without releasing
the terminal, allowing the Agent to call terminal/output and other methods.
Releases a terminal
The command is killed if it hasn't exited yet. Use
terminal/wait_for_exitto wait for the command to exit before releasing the terminal.After release, the
TerminalIdcan no longer be used with otherterminal/*methods, but tool calls that already contain it, continue to display its output.The
terminal/killmethod can be used to terminate the command without releasing the terminal, allowing the Agent to callterminal/outputand other methods.See protocol docs: Terminals