pub struct PaneOpenRequest {Show 22 fields
pub view: String,
pub file: Option<String>,
pub url: Option<String>,
pub cwd: Option<String>,
pub title: Option<String>,
pub tab_id: Option<String>,
pub split_direction: Option<String>,
pub split_reference_block_id: Option<String>,
pub focus: Option<bool>,
pub tree_expanded: Option<bool>,
pub floating: Option<bool>,
pub reuse_editor_pane: Option<bool>,
pub target_block_id: Option<String>,
pub follow_folder: Option<bool>,
pub viewer: Option<String>,
pub line: Option<u32>,
pub offset: Option<u64>,
pub page: Option<u32>,
pub select: Option<Vec<String>>,
pub connection: Option<String>,
pub auth: Option<UiAutomationAuth>,
pub place: PlaceArgs,
}Expand description
POST /api/v1/pane/open — open a new pane.
Structurally equivalent to rpc_types::CommandPaneOpenData (same wire
fields) so the two are interchangeable on the wire; srv deserializes into
CommandPaneOpenData, mcp serializes from this type.
Fields§
§view: String§file: Option<String>§url: Option<String>§cwd: Option<String>§title: Option<String>§tab_id: Option<String>§split_direction: Option<String>§split_reference_block_id: Option<String>§focus: Option<bool>§tree_expanded: Option<bool>§floating: Option<bool>§reuse_editor_pane: Option<bool>Some(true), view: "editor" only: explicit opt-in to reuse an
already-open Editor pane in the caller’s own tab (identified via
split_reference_block_id) instead of always creating a new one.
Set only by the OpenEditor MCP tool — NOT inferred from other
fields, since other legitimate pane.open callers also set
split_reference_block_id for split placement without wanting
reuse (EditorViewModel.openToTheSide/openInTerminal).
target_block_id: Option<String>view: "editor" only: the Editor pane (block_id) to put file in.
follow_folder: Option<bool>view: "editor" only: an image or video tab follows newer matching
files in its folder. Set by the OpenMedia alias (Pane open, view media).
viewer: Option<String>view: "editor" only: the viewer to open file in (text, image, media, pdf, hex, info), and where
in it: a text line (1-based), a hex byte offset, a PDF page (1-based).
line: Option<u32>§offset: Option<u64>§page: Option<u32>§select: Option<Vec<String>>view: "files" only: names (or full paths) inside file to select
once the Files pane has listed it. Set by the OpenFiles MCP tool.
connection: Option<String>The connection the pane works on (an SSH host, wsl://<distro>);
absent for this computer. An SSH host needs auth.
auth: Option<UiAutomationAuth>The calling agent’s signed identity, for an SSH connection.
place: PlaceArgsWith floating: the window’s size and place.
Trait Implementations§
Source§impl Clone for PaneOpenRequest
impl Clone for PaneOpenRequest
Source§fn clone(&self) -> PaneOpenRequest
fn clone(&self) -> PaneOpenRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more