ExecuteShellCommandTool

Executes shell commands with user approval and automatic timeout.

Before running any command, asks the user for confirmation. If approved, runs the command and captures everything it prints. If the command takes too long, cancels it automatically.

Constructors

Link copied to clipboard
constructor(executor: ShellCommandExecutor, confirmationHandler: ShellCommandConfirmationHandler)

Types

Link copied to clipboard
data class Args(val command: String, val timeoutSeconds: Int, val workingDirectory: String? = null)

Parameters for running a shell command.

Link copied to clipboard
data class Result(val command: String, val exitCode: Int?, val output: String)

Result of attempting to run a command.

Properties

Link copied to clipboard
Link copied to clipboard
open override val description: String
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard