pub struct ShellCreateRequest {
pub agent_block_id: String,
pub cmd: String,
pub cwd: Option<String>,
pub title: Option<String>,
pub env: Option<HashMap<String, String>>,
pub capture_stdin: Option<bool>,
pub connection: Option<String>,
pub auth: Option<UiAutomationAuth>,
}Expand description
POST /api/v1/shell/create
Fields§
§agent_block_id: String§cmd: String§cwd: Option<String>§title: Option<String>§env: Option<HashMap<String, String>>§capture_stdin: Option<bool>If true, pipe the child’s stdin so ShellInput() can write to it.
Default false (stdin is /dev/null) — avoids blocking programs that
read stdin to EOF (e.g. cat with no args).
connection: Option<String>Where the command runs: local (the default) or wsl://<distro>. An
SSH destination is refused until SSH terminals ship
(SPEC_REMOTE_TERMINALS_AND_DURABLE_SESSIONS_2026_10_02.md §8).
auth: Option<UiAutomationAuth>The calling agent’s signed identity (UiAutomationAuth, its own jekt
key). Required for an SSH connection: srv derives the agent’s pane
from it and refuses a request naming another pane, so no agent can
borrow another’s SSH consent.
Trait Implementations§
Source§impl Clone for ShellCreateRequest
impl Clone for ShellCreateRequest
Source§fn clone(&self) -> ShellCreateRequest
fn clone(&self) -> ShellCreateRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShellCreateRequest
impl Debug for ShellCreateRequest
Source§impl<'de> Deserialize<'de> for ShellCreateRequest
impl<'de> Deserialize<'de> for ShellCreateRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShellCreateRequest
impl RefUnwindSafe for ShellCreateRequest
impl Send for ShellCreateRequest
impl Sync for ShellCreateRequest
impl Unpin for ShellCreateRequest
impl UnsafeUnpin for ShellCreateRequest
impl UnwindSafe for ShellCreateRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more