Skip to main content
Glama

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

NameRequiredDescriptionDefault
cwdNoWorking directory to cd into after creation
commandNoCommand to execute in the new pane
profileNoiTerm2 profile name to use (omit for default profile)
verticalNoSplit direction: true for vertical (side by side), false for horizontal (top/bottom). Default: true.
session_idYesSession ID of the pane to split (UUID from list_sessions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It usefully discloses the return value (the new pane's session ID), which matters since there is no output schema, but it says nothing about permissions, whether the split affects running processes in the source pane, or what happens with an invalid session ID.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler. The action and its result are front-loaded, and the return-value note follows immediately where the agent needs it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-required-param mutation with fully documented schema, the description covers the action, the split directions, and the return value. The remaining gap is side-effect/error behavior, which is less critical but still absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description's phrase 'vertically or horizontally' reinforces the vertical flag's meaning with plain-language direction names, adding a small amount of orientation clarity beyond the schema's own text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (split) and resource (an existing session's pane) plus the effect of creating a new pane, which distinguishes it from session-level siblings like create_tab and create_window that don't target an existing pane.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the agent can infer it should be used when a second pane is needed inside an existing session. There is no explicit when-not guidance, no note that session IDs come from list_sessions (that hint lives in the schema), and no mention of failure conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.