pub struct PtyShellInputRequest {
pub shell_id: String,
pub agent_block_id: String,
pub text: String,
}Expand description
POST /api/v1/ptyshell/input — write raw text to the PTY, as if typed.
agent_block_id is filled in by agentmux-mcp from its own trusted
env (AGENTMUX_AGENT_BUS_ID/AGENTMUX_BLOCKID), never a model-facing
tool parameter — same non-forgeable guarantee agent_slug() documents.
It’s what lets the backend verify shell_id is actually a sub-block of
THIS caller’s own pane before acting on it (see
is_owned_by_agent in agentmux-srv).
Fields§
§shell_id: String§agent_block_id: String§text: StringTrait Implementations§
Source§impl Clone for PtyShellInputRequest
impl Clone for PtyShellInputRequest
Source§fn clone(&self) -> PtyShellInputRequest
fn clone(&self) -> PtyShellInputRequest
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 PtyShellInputRequest
impl Debug for PtyShellInputRequest
Source§impl<'de> Deserialize<'de> for PtyShellInputRequest
impl<'de> Deserialize<'de> for PtyShellInputRequest
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 PtyShellInputRequest
impl RefUnwindSafe for PtyShellInputRequest
impl Send for PtyShellInputRequest
impl Sync for PtyShellInputRequest
impl Unpin for PtyShellInputRequest
impl UnsafeUnpin for PtyShellInputRequest
impl UnwindSafe for PtyShellInputRequest
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