Skip to content

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.

Capabilityui.window_layouts
AreaWindow and UI driver
Accesschanges files, settings
Reaches—
Rightswrite, settings
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
actionstringlist (default), save, apply, restore, rename or delete.
namestringThe layout's name. apply: Default is the default layout. save: the name of the new layout; omitted, the selected layout is saved over.
new_namestringrename: the new name.
shownarray of stringsave: ids of the tool windows the layout shows (default none); the server has no window to read them from.
active_windowstringsave: id of the tool window that gets the keyboard focus; one of shown.
dry_runbooleanOnly 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.

Terminal window
ferris-idea call ~/my-project window_layouts
Input 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
}
}
}