Expand description
Canonical HTTP request/response DTOs shared between agentmux-srv, agentmux-mcp, and agentmux-bashwrap. Every struct here is the single source of truth for the corresponding wire shape; the three crates all import rather than redeclare these types.
Structs§
- Close
Pane Request - Inject
Request POST /agentmux/reactive/inject— deliver a message to an agent.- Pane
Open Request POST /api/v1/pane/open— open a new pane.- Pane
Open Response - Response from
POST /api/v1/pane/open - Pane
Title Request POST /api/v1/pane/title— set a pane’s display title.- PtyShell
Create Request POST /api/v1/ptyshell/create- PtyShell
Create Response - Response from
POST /api/v1/ptyshell/create.shell_idis the new sub-block’s id — the same value every otherPtyShell*call takes. - PtyShell
Input Request POST /api/v1/ptyshell/input— write raw text to the PTY, as if typed.- PtyShell
Input Response - Response from
POST /api/v1/ptyshell/input - PtyShell
Read Request POST /api/v1/ptyshell/read— read back the shell’s raw output tail.- PtyShell
Read Response - Response from
POST /api/v1/ptyshell/read - PtyShell
Resize Request POST /api/v1/ptyshell/resize— resize the PTY. Some TUIs render differently or wrap badly at the fallback geometry (25x200).- PtyShell
Resize Response - Response from
POST /api/v1/ptyshell/resize - PtyShell
Status Request POST /api/v1/ptyshell/status— query whether the shell is still running.- PtyShell
Status Response - Response from
POST /api/v1/ptyshell/status - PtyShell
Stop Request POST /api/v1/ptyshell/stop— release the agent’s lock on the shell now, without waiting forAGENT_LOCK_WINDOW_MSto lapse.- PtyShell
Stop Response - Response from
POST /api/v1/ptyshell/stop - Quit
Self Request POST /api/v1/agent/pane/close— backs theClosePaneMCP tool. See docs/specs/SPEC_AGENT_PANE_LIFECYCLE_CONTROL_2026_09_10.md.- Register
DevServer Request POST /api/v1/agent/dev_server/register— backs theRegisterDevServerMCP tool. See docs/specs/SPEC_NATIVE_CONTAINER_DEV_PROXY_2026_09_19.md.- Register
DevServer Response - Response for
POST /api/v1/agent/dev_server/register. - Shell
Create Request POST /api/v1/shell/create- Shell
Create Response - Response from
POST /api/v1/shell/create - Shell
Input Request POST /api/v1/shell/input— write text to a running shell’s stdin.- Shell
Input Response - Response from
POST /api/v1/shell/input - Shell
Status Request POST /api/v1/shell/status— query whether a shell is still running.- Shell
Status Response - Response from
POST /api/v1/shell/status - Shell
Stop Request POST /api/v1/shell/stop- Shell
Stop Response - Response from
POST /api/v1/shell/stop - TabActivate
Request POST /api/v1/tab/activate— switch the active tab.- TabName
Request POST /api/v1/tab/name— rename a tab.- TabNew
Request POST /api/v1/tab/new— create a new tab in a workspace.- UiAutomation
Auth - Identity proof shared by every
/api/v1/ui/*request.sigisjekt_sign::sign_jekt(key, "ui-automation-identity", agent_id, "__srv__", ts_secs, "")— the fixed msgid/target_agent/message values exist purely for domain separation from real jekt message signatures (no genuine jekt uses this literal msgid, and “srv” is not a spawnable agent name), not because those fields carry meaning here. - UiBrowser
ActRequest POST /api/v1/ui/browser/act— backsBrowserClick,BrowserFill,BrowserSelectandBrowserCheck(spec §4.2).- UiBrowser
Dispatch KeyRequest POST /api/v1/ui/browser/dispatch_key- UiBrowser
Eval Request POST /api/v1/ui/browser/eval- UiBrowser
Focus Element Request POST /api/v1/ui/browser/focus_element- UiBrowser
Focus Info Request POST /api/v1/ui/browser/focus_info- UiBrowser
Handoff Request POST /api/v1/ui/browser/handoff— backsBrowserHandoff(SPEC_AGENT_DRIVEN_BROWSER_PANES_2026_10_07.md §5.2): show the user a banner in the pane and wait for Done or Cancel.- UiBrowser
History Request POST /api/v1/ui/browser/back,/forward,/reload— all three only need the target block id;ignore_cacheis meaningful for/reloadonly (ignored by back/forward, mirrorsbrowser_api::types::HistoryReq).- UiBrowser
Navigate Request POST /api/v1/ui/browser/navigate- UiBrowser
Open Request POST /api/v1/ui/browser/open— backsOpenBrowser. Opens a browser pane next to the caller’s own pane and records the caller as its owner (SPEC_AGENT_DRIVEN_BROWSER_PANES_2026_10_07.md §3).- UiBrowser
Open Response - Response for
POST /api/v1/ui/browser/open: the new pane’s block id, which theBrowser*andUI*tools take aspane. - UiBrowser
SetFiles Request POST /api/v1/ui/browser/set_files— backsBrowserSetFiles(SPEC_AGENT_DRIVEN_BROWSER_PANES_2026_10_07.md §5.3). srv allows only files inside the calling agent’s own workspace.- UiBrowser
Snapshot Request POST /api/v1/ui/browser/snapshot— backsBrowserSnapshot(SPEC_AGENT_DRIVEN_BROWSER_PANES_2026_10_07.md §4.1).- UiBrowser
Wait ForRequest POST /api/v1/ui/browser/wait_for— backsBrowserWaitFor. Exactly one oftext,url_contains,gone.- UiClick
Request POST /api/v1/ui/click- UiPress
Keys Request POST /api/v1/ui/shortcuts/press- UiQuery
Request POST /api/v1/ui/query- UiRun
Command Request POST /api/v1/ui/shortcuts/run- UiScreenshot
Request POST /api/v1/ui/screenshot- UiScreenshot
Response - Response for
POST /api/v1/ui/screenshot.pathis a file already written to disk (openable via theOpenMediatool);png_base64is the same image inline, for a caller that can render an MCPImageContentblock directly without a second round trip. - UiShortcuts
List Request POST /api/v1/ui/shortcuts/list- Window
Focus Request POST /api/v1/window/focus— bring a window to the foreground.- Window
Name Request POST /api/v1/window/name— set a window’s display name.- Workspace
Name Request POST /api/v1/workspace/name— rename a workspace.- WpsPublish
Request POST /agentmux/wps/publish— shared client/server envelope.
Enums§
- Shell
Input Failure - Reason a
ShellInputwrite did not happen.