Skip to main content
Glama

session_get_variable

Retrieve iTerm2 session variable values like session name or path to monitor terminal session properties and enable automated terminal workflows.

Instructions

Get the value of an iTerm2 session variable.

Args: variable: The variable name (e.g. "session.name", "session.path"). session_id: Target session ID. Omit for the active session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variableYes
session_idNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/urjitbhatia/it2mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server