pub struct ToolExecutionStartShellToolInfo {
pub display_command: Option<String>,
pub has_write_file_redirection: bool,
pub possible_paths: Vec<String>,
}Expand description
Shell-aware path hints for a shell tool’s command, captured at start time so consumers can snapshot a file’s pre-image before the tool runs.
Fields§
§display_command: Option<String>The command with a redundant leading cd into the working directory removed, present only when there was one to remove. Computed with the same routine the shell driver applies before spawning, so a surface that renders this shows the text that actually runs. Consumers that display it should keep the original tool arguments available on demand.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
has_write_file_redirection: boolWhether the command includes a file write redirection (e.g., > or >>).
possible_paths: Vec<String>File paths the command may read or write, derived from the command at start time. Produced by the same shell-aware extractor as PermissionRequestShell.possiblePaths, so it is present even when the command is auto-approved and no permission request fires.
Trait Implementations§
Source§impl Clone for ToolExecutionStartShellToolInfo
impl Clone for ToolExecutionStartShellToolInfo
Source§fn clone(&self) -> ToolExecutionStartShellToolInfo
fn clone(&self) -> ToolExecutionStartShellToolInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more