create_window
Opens a new iTerm2 window only when a task needs a separate workspace, accepting an optional working directory, command, and profile. Returns the new session ID.
Instructions
Create a new iTerm2 window. Prefer create_tab over this — new windows clutter the workspace. Only use create_window when the task genuinely needs a separate window. Returns the session ID of the new session.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory to cd into after creation | |
| command | No | Command to execute in the new window | |
| profile | No | iTerm2 profile name to use (omit for default profile) |