Optional_Extension point for implementations
OptionalargsArray of command arguments.
The command to execute.
OptionalcwdWorking directory for the command (absolute path).
OptionalenvEnvironment variables for the command.
OptionaloutputMaximum number of output bytes to retain.
When the limit is exceeded, the Client truncates from the beginning of the output to stay within the limit.
The Client MUST ensure truncation happens at a character boundary to maintain valid string output, even if this means the retained output is slightly less than the specified limit.
The session ID for this request.
Executes a command in a new terminal
Only available if the
terminalClient capability is set totrue.Returns a
TerminalIdthat can be used with other terminal methods to get the current output, wait for exit, and kill the command.The
TerminalIdcan also be used to embed the terminal in a tool call by using theToolCallContent::Terminalvariant.The Agent is responsible for releasing the terminal by using the
terminal/releasemethod.See protocol docs: Terminals