Skip to main content
Reference · Information

senkani_pane

Live

Control the workspace panes from a tool call — open, close, focus, resize.

Signature

senkani_mcp.call(tool="senkani_pane", args={...})

Behavior

Sends IPC messages to the SwiftUI app via a local Unix-domain socket (`~/.senkani/sockets/pane.sock`). Pane mutations execute on the app's main thread.

Inputs

Name
Type
Default
Description
action
string
`open`, `close`, `focus`, `resize`, `list`.
pane_type
string
For `open`: Terminal, Analytics, Browser, etc.
pane_id
string
For `close` / `focus` / `resize`.

Output

Updated pane state. `list` returns the full pane tree for the current workspace.

Example

{"tool":"senkani_pane","args":{"action":"open","pane_type":"Analytics"}}

Details

Requires the app to be running. If the socket is absent or the app is not a managed target, returns an error.

Socket auth via `SENKANI_SOCKET_AUTH=on` requires a handshake frame matching `~/.senkani/.token` (mode 0600, rotated on start).

See also

Source: Sources/MCPServer/Tools/PaneTool.swift + SenkaniApp/IPC/