pub(crate) const PANE_TOOL: &str = r#"{
"name": "Pane",
"description": "Your place in the AgentMux UI, and the panes you show the user. Every call takes an action. whoami: your own pane (block), tab, window and workspace, ids and names; not your agent id, which is the AGENTMUX_AGENT_ID environment variable. layout: the UI around you, read-only, by query: layout (every window with its workspace, tabs and panes [block_id, view, title; floating: true, rect {x, y, width, height, display_scale: CSS pixels from the work area's top-left} and always_on_top (the person's tack) for a floating pane you opened, rect null with the reason when its window is hidden; share (0 to 1, the fraction of its tab's area) for a docked pane, as the layout stores it, and size {width, height} in CSS pixels as drawn for a docked pane in the tab its window is showing (size null with size_unavailable and the reason for any other, or when the window does not answer in 2 s); hibernated: true for a browser pane asleep to save memory, which the next Browser call wakes], and which tab is active), windows, workspaces, or tabs (those in your workspace). open: show the user a place in AgentMux next to this conversation, by link (agentmux://view/place?key=value#anchor: a Settings section or one setting, the Vault or one of its sections, Connectors, Memory, a Kanban task, the Swarm, your own Audit rows, History, Help and the other views; the user documentation's Deep links page lists them), or by view with place, params and anchor, which write the same link; it answers opened, reused (the pane already showed it), queued (the person was typing, or the window is starting) or refused, with the reason and what would work. It never takes the person's focus, opens only in your own tab, and at most ten a minute. Or show a file by view: editor (any file: code, text, markdown, images, video, audio, binary; the editor picks the viewer), media (the same editor, its tab following newer files in the folder, for a render pipeline) or files (a folder in a Files pane, optionally with entries selected; it only navigates, nothing on disk changes). Pass an absolute path; it returns once the pane is open. An editor or media open goes into an Editor pane your tab already has, as another document tab: with several, the one on screen nearest your pane, or the one named by target_id (restored if minimized, brought to the front if it is a background tab of a pane); it makes a new pane only when the tab has none, or with floating. split and collapse_tree shape only a pane that is newly made. new_tab: open a tab in your own workspace and switch to it, named or auto-named. activate_tab: make tab_id the active tab of its workspace. focus_window: bring a window to the foreground (default: yours). rename: rename a window (its OS title, up to 64 characters), a tab, a pane (a conversation's header) or a workspace (up to 128 characters): yours, or target_id's. With target file, rename a file or folder in its folder (path, with name as the new name): it is renamed as the Files pane renames it, never over a name that exists, and every Editor tab open on it follows, which a rename in your own shell does not do; it returns the new path, or the reason it was refused. resize, move, place: change a floating pane you opened (target_id, from layout; refused on one you did not open, or one that is docked): resize takes width and/or height and keeps the position, move takes spot or x and y and keeps the size, place takes any of them in one call. Each answers with where the window went (placed, as an open does), pulls a value outside the work area in and says so (clamped), never activates the window or takes the user's focus, and shares the open limit of ten a minute. dock: put a floating pane you opened back into your own tab, beside your pane on the side split names, or where it came from; its window closes and the pane keeps its id. float: give a docked pane you opened a window of its own, with the same size, spot, x and y an open takes (a browser: 1040 x 760, flush right); at most 4 floating panes. A browser is made again in its new window, so its page reloads at its address: float it before you fill anything in, or open it with floating: true. pin: keep a pane on screen in every tab of its window (your own, or one you opened; target_id, default yours). Nothing moves: the pane stays a pane of its own tab, at its place and size, and the other tabs show it there, over their own panes. One pane per window; not the only pane of a tab, a maximized pane or a floating one. unpin: the pane becomes an ordinary pane of the tab that is showing (it moves into that tab, onto the edge it was on, when that is not its own). whoami says pinned: true for a pinned pane (tab_id is its own tab), and layout names it under the window as pinned [{pane, view, tab_id}] as well as in its tab. Closing a pane is in Stop, with the other actions that end work.",
"inputSchema": {
"type": "object",
"properties": {
"action": { "type": "string", "enum": ["whoami", "layout", "open", "new_tab", "activate_tab", "focus_window", "rename", "resize", "move", "place", "dock", "float", "pin", "unpin"], "description": "What to do" },
"query": { "type": "string", "enum": ["layout", "windows", "workspaces", "tabs"], "description": "layout: what to return (default layout)" },
"view": { "type": "string", "enum": ["editor", "media", "files", "settings", "vault", "connectors", "memory", "kanban", "swarm", "audit", "atlas", "drone", "toolchain", "tower", "help", "shortcuts", "sysinfo"], "description": "open: the kind of pane; with path for editor, media and files, else with place" },
"link": { "type": "string", "description": "open: a deep link, agentmux://view/place?key=value#anchor (for example agentmux://settings/recording#recording.engine or agentmux://kanban/task/48139)" },
"place": { "type": "string", "description": "open: the place inside view, as ids joined by / (recording, task/48139, entry/e_4f2a9c7b1d); for editor and files the absolute path" },
"params": { "type": "object", "description": "open: the place's parameters by name (board, agent, line, select)" },
"anchor": { "type": "string", "description": "open: a place inside the place: one setting's id (recording.engine), one card" },
"open_in": { "type": "string", "description": "open by link: where it shows: beside (default, next to this conversation), new (a new pane in your tab), pane:<block_id> (a pane of your own tab), tab:<tab_id> or window:<window_id>; a tab that isn't yours opens in your own tab instead, and a window is refused" },
"path": { "type": "string", "description": "open: the absolute path of the file (editor, media) or folder (files); rename file: the absolute path of the file or folder to rename" },
"select": { "type": "array", "items": { "type": "string" }, "description": "open files: names (or absolute paths) of entries in the folder to select once it is listed" },
"title": { "type": "string", "description": "open: the pane's title (default: the file or folder name)" },
"split": { "type": "string", "enum": ["right", "left", "down", "up"], "description": "dock: the side of your own pane the floating pane goes to (default: where it came from). open: put the pane in a split beside yours (default: a new tab in your own pane group, not a split; ignored when floating, and when the file goes into the Editor pane you already have)" },
"floating": { "type": "boolean", "description": "open (editor, media, files): a floating window over the app instead of a docked split (default false). It shows without taking the user's focus; you may have at most 4 floating panes open; the answer says where it went (placed: x, y, width, height in CSS pixels from the work area's top-left, clamped, display_scale)" },
"width": { "type": ["number", "string"], "description": "open with floating, and resize, place, float: the window's width in CSS pixels (900) or a share of the work area (\"60%\"); the default is about half the app window (a browser: 1040)" },
"height": { "type": ["number", "string"], "description": "open with floating, and resize, place, float: the window's height in CSS pixels (900) or a share of the work area (\"60%\"); the default is about 60% of the app window (a browser: 760)" },
"spot": { "type": "string", "enum": ["center", "right", "left", "top", "bottom", "top-right", "top-left", "bottom-right", "bottom-left"], "description": "open with floating, and move, place, float: a named place in the work area of the monitor the app window is on (a browser: right). Values outside the work area are pulled in, and the answer says so (placed.clamped)" },
"x": { "type": "number", "description": "open with floating, and move, place, float: the window's left edge in CSS pixels from the work area's left; give y too; wins over spot" },
"y": { "type": "number", "description": "open with floating, and move, place, float: the window's top edge in CSS pixels from the work area's top; give x too" },
"collapse_tree": { "type": "boolean", "description": "open editor: the file-tree sidebar starts collapsed by default for a file; false opens it expanded; only for a newly made pane, an existing Editor pane keeps its own tree" },
"viewer": { "type": "string", "enum": ["text", "large", "image", "media", "pdf", "hex", "info"], "description": "open editor: show the file in this viewer instead of the one the editor picks (for example hex for the bytes of any file, text to read a binary file as text, large for a text file over 10 MB)" },
"line": { "type": "integer", "minimum": 1, "description": "open editor (text viewer): put the cursor on this line and scroll to it" },
"offset": { "type": "integer", "minimum": 0, "description": "open editor (hex viewer): the byte offset to open at, in decimal" },
"page": { "type": "integer", "minimum": 1, "description": "open editor (pdf viewer): the page to open at" },
"connection": { "type": "string", "description": "open editor, files; rename file: where it is: an SSH host (an ssh config alias, host, user@host or user@host:port; Terminal action \"connections\" shows them), whose pane then opens on that host for the user. Absent or \"local\": this machine. An SSH host is reached as the user with their SSH keys, so the first use asks the user to allow it (an error says if they did not), and any ssh prompt goes to the user, never to you. The path is the host's own (~ is its home)." },
"name": { "type": "string", "description": "new_tab: the tab's name; rename: the new name (for a file, a plain name with no folder)" },
"tab_id": { "type": "string", "description": "activate_tab: the tab, from layout" },
"window_id": { "type": "string", "description": "focus_window: the window, from layout (default: yours)" },
"target": { "type": "string", "enum": ["window", "tab", "pane", "workspace", "file"], "description": "rename: what to rename" },
"target_id": { "type": "string", "description": "resize, move, place, dock, float: the pane to act on (a block_id of a pane you opened, from layout). pin, unpin: the pane (your own, or one you opened); default yours. rename: its id (window_id, tab_id, block_id or workspace_id, from layout or whoami); default: yours. open editor or media: the block_id of the Editor pane (view editor, from layout) to put the file in, instead of the one chosen for you; an error if it is not an Editor" }
},
"required": ["action"]
}
}"#;Expand description
Pane: your place in the UI and the panes you show the user (docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4).