layout
Control Obsidian workspace layout: split panes, open files and tabs, close tabs, toggle sidebars, focus tab groups, and list recent files to arrange your workspace.
Instructions
Control Obsidian window layout, tabs, and navigation.
Actions:
workspace: Show workspace layout tree with tab IDs (no params)
split: Split current pane (direction required: "vertical" or "horizontal")
close: Close tab(s) (target optional: "current", "others", or "all")
sidebar: Toggle a sidebar (side required: "left" or "right")
focus: Focus tab group by direction (direction required: "left", "right", "top", or "bottom")
open: Open a file (path required)
tabs: Open a new tab or list tabs (path optional; omit to list all tabs)
recents: List recently opened files (no params)
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": {
"action": "<action>"
},
"name": "layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path (for open, tabs) | |
| side | No | Sidebar side (for sidebar) | |
| action | Yes | Action to perform | |
| target | No | Close target (for close, default: current) | |
| direction | No | Direction (for split or focus) |