pub struct SendInput {
pub text: Option<String>,
pub key: Option<String>,
pub combo: Option<String>,
pub scroll: Option<i64>,
pub relay: Option<String>,
pub device: Option<String>,
pub token: Option<String>,
}Expand description
Build the [ToolRouter] exposing the CLI’s command surface as MCP tools,
including the self_update_* tools contributed by updatable-cli and the
Input for the send MCP tool: a single keystroke command, optionally cast
through a relay. Set exactly one of text/key/combo/scroll.
Fields§
§text: Option<String>A literal string to type (.text).
key: Option<String>A semantic key name, e.g. “enter”, “tab”, “esc” (.key).
combo: Option<String>An omni combo string, e.g. “ctrl,a,g” (.combo).
scroll: Option<i64>Scroll lines; positive = down, negative = up (.scroll).
relay: Option<String>Relay hub to cast through (host:port). If unset, only the NDJSON wire line is returned (no transport is performed).
device: Option<String>Target device id for the relay path (default “all”).
token: Option<String>Shared relay token (else the OMNI_RELAY_TOKEN env var). Used only when
relay is set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendInput
impl<'de> Deserialize<'de> for SendInput
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
Source§impl JsonSchema for SendInput
impl JsonSchema for SendInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SendInput
impl RefUnwindSafe for SendInput
impl Send for SendInput
impl Sync for SendInput
impl Unpin for SendInput
impl UnsafeUnpin for SendInput
impl UnwindSafe for SendInput
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