split_pane
Split an existing iTerm2 session pane vertically or horizontally to create a new pane, optionally running a command or using a profile, and return the new pane's session ID for directing other agents.
Instructions
Split an existing session's pane vertically or horizontally, creating a new pane. Returns the session ID of the new pane.
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": {
"session_id": "<session_id>"
},
"name": "split_pane"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory to cd into after creation | |
| command | No | Command to execute in the new pane | |
| profile | No | iTerm2 profile name to use (omit for default profile) | |
| vertical | No | Split direction: true for vertical (side by side), false for horizontal (top/bottom). Default: true. | |
| session_id | Yes | Session ID of the pane to split (UUID from list_sessions) |