window_layouts
MCP tools › Window and UI driver
The user's named tool window layouts, shared by all projects. action: list (default) returns the layouts and the selected one; save stores the workspace layout with shown and active_window as new layout name (or into the selected one); apply (Default for the default) and restore write a layout to the workspace's layout file, used by a running window at its next start; rename; delete (not the selected one). Names: 1 to 64 characters, no /, \ or control characters, not Default, unique ignoring case. Every action but list is a dry run unless dry_run: false; then save, rename and delete need the settings right, apply and restore the write right.
| Capability | ui.window_layouts |
|---|---|
| Area | Window and UI driver |
| Access | changes files, settings |
| Reaches | — |
| Rights | write, settings |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
action | string | list (default), save, apply, restore, rename or delete. |
name | string | The layout's name. apply: Default is the default layout. save: the name of the new
layout; omitted, the selected layout is saved over. |
new_name | string | rename: the new name. |
shown | array of string | save: ids of the tool windows the layout shows (default none); the server has no
window to read them from. |
active_window | string | save: id of the tool window that gets the keyboard focus; one of shown. |
dry_run | boolean | Only return what would change (default true); list ignores it. |
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 window_layoutsInput schema as JSON
{ "type": "object", "properties": { "action": { "description": "`list` (default), `save`, `apply`, `restore`, `rename` or `delete`.", "type": [ "string", "null" ], "default": null }, "name": { "description": "The layout's name. `apply`: `Default` is the default layout. `save`: the name of the new\nlayout; omitted, the selected layout is saved over.", "type": [ "string", "null" ], "default": null }, "new_name": { "description": "`rename`: the new name.", "type": [ "string", "null" ], "default": null }, "shown": { "description": "`save`: ids of the tool windows the layout shows (default none); the server has no\nwindow to read them from.", "type": [ "array", "null" ], "items": { "type": "string" }, "default": null }, "active_window": { "description": "`save`: id of the tool window that gets the keyboard focus; one of `shown`.", "type": [ "string", "null" ], "default": null }, "dry_run": { "description": "Only return what would change (default true); `list` ignores it.", "type": [ "boolean", "null" ], "default": null } }}