onda_window_mount_workspace
Mount a workspace into a specified window, relocating it atomically when it is open in another window.
Instructions
Mount a workspace in a specific window. Idempotent when the workspace is already there. If the workspace is currently mounted in another window, orchestrates an atomic transfer via the unmount-request flow (same path the in-app "Move workspace here?" dialog uses). Returns { success, workspaceId, windowId, transferred }. Pass direction to control how the new tile is spliced into the mosaic (mirrors the Cmd+P picker: Enter = down, Cmd+Enter = right).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"windowId": "<windowId>"
},
"name": "onda_window_mount_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowId | Yes | Destination window id. | |
| direction | No | Optional. Where to splice the new tile relative to the anchor workspace in the mosaic. Default: "down". | |
| workspaceId | Yes | Workspace to mount. | |
| anchorWorkspaceId | No | Optional. Workspace id to anchor the split next to. Default: currently active workspace in the target window. |