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
| Name | Required | Description | Default |
|---|---|---|---|
| variable | Yes | ||
| session_id | No |