Skip to main content
Glama

Open pane

open_pane

Opens a new terminal pane beside the caller or in a specified tab, window, or remembered project. Runs commands with exact arguments and tags panes with metadata.

Instructions

Open a new pane. With no tabId/projectTab/windowId it opens beside the caller, in the calling pane's own tab (HYPERPANES_PANE_ID); outside hyperpanes, or with only windowId, it opens in that window's active tab (default: the first window). Returns the new paneId. command alone runs through the shell. Pass args (a string array) to run command DIRECTLY as the executable with that exact argv — no shell, no re-parse — which is the reliable way to pass arguments containing spaces or quotes (e.g. command:"claude", args:["--append-system-prompt","…long persona…"]); a single command string with such args gets mangled by the shell. meta attaches free-form org metadata (reserved keys: role/parent/agentType/task) so the new worker is self-describing. project opens the pane in a remembered project (see list_projects/add_project): it defaults the pane's cwd + frame color from that project and bumps its recency in the sidebar rail.

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": "open_pane"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
envNo
argsNoWith `command`: run it directly with this verbatim argv (no shell re-parse). Each element is one argument — do NOT pre-quote.
metaNo
colorNo
labelNo
shellNo
tabIdNoopen the pane directly in this existing tab (a tabId from list_panes) instead of the caller's tab (or, with only `windowId`, that window's active tab) — nothing opens elsewhere first, so never open_pane then move_pane. Exclusive with projectTab; `windowId` is optional and must match the tab's window. Needs a hyperpanes app with newPane `tabId` support; an older app opens it in the active tab and the result carries a `warning`
commandNo
projectNoopen the pane in a remembered project (its id or name; see list_projects): defaults cwd + frame color from the project and bumps its recency. An explicit cwd/color still wins; an unknown handle fails the call.
windowIdNo
projectTabNowith `project`: open the pane in that project's tab (reused if the window has one, else created with the project's name and colour) instead of the caller's tab. Opt-in; needs a hyperpanes app with `projectTab` support

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.25
    • addedInput schema / properties / projectTab
      Added value: +{
      +  "description": "with `project`: open the pane in that project's tab (reused if the window has one, else created with the project's name and colour) instead of the caller's tab. Opt-in; needs a hyperpanes app with `projectTab` support",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tabId
      Added value: +{
      +  "description": "open the pane directly in this existing tab (a tabId from list_panes) instead of the caller's tab (or, with only `windowId`, that window's active tab) — nothing opens elsewhere first, so never open_pane then move_pane. Exclusive with projectTab; `windowId` is optional and must match the tab's window. Needs a hyperpanes app with newPane `tabId` support; an older app opens it in the active tab and the result carries a `warning`",
      +  "type": "string"
      +}
  2. First observedv0.1.13

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses the return value (new paneId), the `warning` field returned by older hyperpanes builds lacking newPane tabId support, the shell-vs-direct-exec distinction and its argument-mangling consequence, the reserved meta keys, and the recency/color/cwd side effects of `project`. It says nothing about permissions, env-var injection, or how the `env`/`label`/`shell` fields affect the spawned process.

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

Conciseness4/5

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

The ordering is sensible and front-loaded: purpose, placement rules, return value, then the three behavioral clusters (command/args, meta, project). Every clause carries real information, but the single dense paragraph with nested em-dash parentheticals makes it hard to scan, and a few placement details are restated from the tabId schema description.

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 12-parameter, zero-required tool with no output schema, the description covers the return value, the failure/warning cases, and the interaction rules among the placement parameters, which is nearly everything an agent needs to call it correctly. The remaining shortfall is the undocumented `env` and `label` parameters and the nested meta/env object shapes.

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

Parameters3/5

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

Schema coverage is only 33% (args, tabId, project, projectTab are documented inline), so the description must compensate, and it does explain the tabId/windowId/projectTab interaction, the shell-vs-args execution model, and the meta reserved keys. However, `env` and `label` remain entirely undocumented in both schema and description, and `shell` and `color` only appear obliquely, leaving meaningful holes at this low coverage.

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?

The description opens with a specific verb and resource ("Open a new pane") and then pins down the exact placement semantics: caller's tab by default via HYPERPANES_PANE_ID, the window's active tab when only windowId is given, or a project's tab with project/projectTab. It even rules out a competing workflow ("never open_pane then move_pane"), so an agent can distinguish this from move_pane or open_tab without inspecting other schemas.

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

Usage Guidelines4/5

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

Guidance is unusually concrete: it prescribes args over a single command string whenever arguments contain spaces or quotes, states that tabId is exclusive with projectTab, notes that an explicit cwd/color overrides project defaults, and that an unknown project handle fails the call. The main gap is that it never contrasts open_pane with the sibling open_tab, so the top-level tool choice is left implicit.

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