tool_windows
MCP tools › Window and UI driver
The workspace's tool window layout. Returns each tool window (id, title, side, placement, order, split, view mode, stripe button, header, actions, defaults), the stripes, Project view extra nodes, main toolbar buttons and More tool windows entries; with width and height (and shown) the laid-out frame. Changes: move with side (and split for the second half), set_mode with mode, remove/restore a stripe button, stripes, restore_default. One window per placement: a later shown id replaces an earlier one (replaced); split_shown shows windows in the other half like ⌥-click. Saved in .ferris-idea/tool-windows.json; a running window uses it at its next start.
| Capability | ui.tool_windows |
|---|---|
| Area | Window and UI driver |
| Access | changes files |
| Reaches | — |
| Rights | write |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
move | string | Tool window to dock elsewhere (project, commit, git, problems, run, debug,
services, terminal, database, build, plugins, structure, find,
find_in_files, endpoints, spring, ai_chat, python, containers, profiler,
remote); needs side. |
side | string | Side for move: left, bottom or right. |
split | boolean | With move: the side's second half (Left Bottom, Bottom Right, Right Bottom); default
false (SPEC-0061 v7). |
set_mode | string | Tool window whose view mode to set; needs mode. |
mode | string | View mode for set_mode: docked, unpinned, undocked, float or window. |
remove | string | Tool window whose stripe button to take away ("Remove from Sidebar"). |
restore | string | Tool window whose stripe button to bring back. |
stripes | boolean | Shows (true) or hides (false) the tool window stripes. |
width | number | Window width for the laid-out frame (frame in the result, with height). |
height | number | Window height for the laid-out frame. |
shown | array of string | Tool windows shown in the frame (ids, in the order they are shown); default project. One
window per placement: a later id replaces an earlier one of the same placement (SPEC-0061
v10). |
split_shown | array of string | Ids of shown windows shown in the other half of their side, as ⌥-click on the stripe
button does, without changing their saved placement (SPEC-0061 v10 behaviour 50). |
resize | string | Tool window whose size to set (width left or right, height at the bottom); needs size. |
size | number | Size in pixels for resize (at least 80); 0 gives back the default third of the window. |
restore_default | boolean | true puts every tool window back to its default side, half and order, drops sizes, view modes, removed buttons and saved frames and shows the stripes, as Restore Default Layout does (SPEC-0167 v5); applied before the other changes of the call. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project tool_windowsInput schema as JSON
{ "type": "object", "properties": { "move": { "description": "Tool window to dock elsewhere (`project`, `commit`, `git`, `problems`, `run`, `debug`,\n`services`, `terminal`, `database`, `build`, `plugins`, `structure`, `find`,\n`find_in_files`, `endpoints`, `spring`, `ai_chat`, `python`, `containers`, `profiler`,\n`remote`); needs `side`.", "type": [ "string", "null" ], "default": null }, "side": { "description": "Side for `move`: `left`, `bottom` or `right`.", "type": [ "string", "null" ], "default": null }, "split": { "description": "With `move`: the side's second half (Left Bottom, Bottom Right, Right Bottom); default\nfalse (SPEC-0061 v7).", "type": [ "boolean", "null" ], "default": null }, "set_mode": { "description": "Tool window whose view mode to set; needs `mode`.", "type": [ "string", "null" ], "default": null }, "mode": { "description": "View mode for `set_mode`: `docked`, `unpinned`, `undocked`, `float` or `window`.", "type": [ "string", "null" ], "default": null }, "remove": { "description": "Tool window whose stripe button to take away (\"Remove from Sidebar\").", "type": [ "string", "null" ], "default": null }, "restore": { "description": "Tool window whose stripe button to bring back.", "type": [ "string", "null" ], "default": null }, "stripes": { "description": "Shows (true) or hides (false) the tool window stripes.", "type": [ "boolean", "null" ], "default": null }, "width": { "description": "Window width for the laid-out frame (`frame` in the result, with `height`).", "type": [ "number", "null" ], "default": null }, "height": { "description": "Window height for the laid-out frame.", "type": [ "number", "null" ], "default": null }, "shown": { "description": "Tool windows shown in the frame (ids, in the order they are shown); default `project`. One\nwindow per placement: a later id replaces an earlier one of the same placement (SPEC-0061\nv10).", "type": [ "array", "null" ], "items": { "type": "string" }, "default": null }, "split_shown": { "description": "Ids of `shown` windows shown in the other half of their side, as ⌥-click on the stripe\nbutton does, without changing their saved placement (SPEC-0061 v10 behaviour 50).", "type": [ "array", "null" ], "items": { "type": "string" }, "default": null }, "resize": { "description": "Tool window whose size to set (width left or right, height at the bottom); needs `size`.", "type": [ "string", "null" ], "default": null }, "size": { "description": "Size in pixels for `resize` (at least 80); 0 gives back the default third of the window.", "type": [ "number", "null" ], "default": null }, "restore_default": { "description": "true puts every tool window back to its default side, half and order, drops sizes, view\nmodes, removed buttons and saved frames and shows the stripes, as Restore Default Layout\ndoes (SPEC-0167 v5); applied before the other changes of the call.", "type": [ "boolean", "null" ], "default": null } }}