Skip to main content
Glama
aiterm-mcp
by kitepon

pty_list

Lists the PTY sessions currently held, including each session's name, foreground command, attach status, size, and agent information so you can inspect and manage active terminals.

Instructions

握っているセッション一覧(名前 / 現在の前面コマンド / attach 状態 / サイズ / agent 情報)。

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

Input Schema

NameRequiredDescriptionDefault
remoteNo別端末のAitermで実行する時のSSH接続情報。hostだけならssh_configの接続名として使う。Aitermは接続情報を保存・管理しない。passphraseは会話記録に残るため、ssh-agentかpassphrase_env(環境変数名)を推奨する。
includeNoagent席の行へ足す事実。turn: 席の今の番(running/idle/読めない時はnull)。own_work: 席が自分で始めて終わっていない仕事(processes、child_results、tasks)。省略した呼び出しは従来どおりで、計算しない(版の確認などで呼ぶ時に重くしない)
env_keysNo帰属確認用の非秘密環境変数名。指定したキーだけを返す

Output Schema

NameRequiredDescriptionDefault
schemaYes
sessionsYes
observed_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv0.70.146
    • removedOutput schema / properties / sessions / items / properties / environment / additionalProperties / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / environment / additionalProperties / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sessions / items / properties / last_input_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / last_input_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sessions / items / properties / launch_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / launch_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / sessions / items / properties / limit_end / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "type": "string"
      -      },
      -      "continued": {
      -        "type": "boolean"
      -      },
      -      "hold": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "armed",
      -              "cancelled"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "reset_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "at",
      -      "reset_at",
      -      "continued",
      -      "hold"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "at": {
      +        "type": "string"
      +      },
      +      "continued": {
      +        "type": "boolean"
      +      },
      +      "hold": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "armed",
      +              "cancelled"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "reset_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "at",
      +      "reset_at",
      +      "continued",
      +      "hold"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sessions / items / properties / own_work / properties / child_results / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / own_work / properties / child_results / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / sessions / items / properties / own_work / properties / exclusions_digest / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / own_work / properties / exclusions_digest / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sessions / items / properties / own_work / properties / processes / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / own_work / properties / processes / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / sessions / items / properties / own_work / properties / tasks / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / own_work / properties / tasks / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / sessions / items / properties / turn / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "event_cursor": {
      -            "anyOf": [
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "interim_from": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "started_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "state": {
      -            "const": "running",
      -            "type": "string"
      -          },
      -          "turn_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "wait_process": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "args": {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "executable": {
      -                    "type": "string"
      -                  },
      -                  "windows_start_process_argument_list": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "executable",
      -                  "args",
      -                  "windows_start_process_argument_list"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "state",
      -          "turn_id",
      -          "started_at",
      -          "event_cursor",
      -          "interim_from"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "state": {
      -            "const": "idle",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "state"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "event_cursor": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "interim_from": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "started_at": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "state": {
      +            "const": "running",
      +            "type": "string"
      +          },
      +          "turn_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "wait_process": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "args": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "executable": {
      +                    "type": "string"
      +                  },
      +                  "windows_start_process_argument_list": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "executable",
      +                  "args",
      +                  "windows_start_process_argument_list"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "state",
      +          "turn_id",
      +          "started_at",
      +          "event_cursor",
      +          "interim_from"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "state": {
      +            "const": "idle",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "state"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sessions / items / properties / vendor_session_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sessions / items / properties / vendor_session_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changedv0.70.127
    • changedOutput schema / properties / sessions / items / properties / harness / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "claude-code",
      -      "claude-machine",
      -      "codex-cli",
      -      "grok-cli",
      -      "cursor-cli",
      -      "antigravity-cli"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "claude-code",
      +      "claude-machine",
      +      "codex-cli",
      +      "codex-machine",
      +      "grok-cli",
      +      "grok-machine",
      +      "cursor-cli",
      +      "cursor-machine",
      +      "antigravity-cli",
      +      "antigravity-machine"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changedv0.70.118
    • changedOutput schema / properties / sessions / items / properties / turn / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "event_cursor": {
      -            "anyOf": [
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "interim_from": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "started_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "state": {
      -            "const": "running",
      -            "type": "string"
      -          },
      -          "turn_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "state",
      -          "turn_id",
      -          "started_at",
      -          "event_cursor",
      -          "interim_from"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "state": {
      -            "const": "idle",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "state"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "event_cursor": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "interim_from": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "started_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "state": {
      +            "const": "running",
      +            "type": "string"
      +          },
      +          "turn_id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "wait_process": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "args": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "executable": {
      +                    "type": "string"
      +                  },
      +                  "windows_start_process_argument_list": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "executable",
      +                  "args",
      +                  "windows_start_process_argument_list"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "state",
      +          "turn_id",
      +          "started_at",
      +          "event_cursor",
      +          "interim_from"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "state": {
      +            "const": "idle",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "state"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed4 schema fields changedv0.70.112
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "agent席の行へ足す事実。turn: 席の今の番(running/idle/読めない時はnull)。own_work: 席が自分で始めて終わっていない仕事(processes、child_results、tasks)。省略した呼び出しは従来どおりで、計算しない(版の確認などで呼ぶ時に重くしない)",
      +  "items": {
      +    "enum": [
      +      "turn",
      +      "own_work"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 2,
      +  "type": "array"
      +}
    • addedInput schema / properties / remote / properties / ssh
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Pinned ssh: {known_hosts_file, host_key_alias?, identity_agent | identity_file, strict_host_key?: true} (absolute paths). Strict host checking against that file with that one identity, no user ssh config. Not combinable with identity_file, ssh_options, passphrase or passphrase_env. Needs Aiterm 0.70.101 on the other computer.",
      +  "properties": {
      +    "host_key_alias": {
      +      "pattern": "^(?!-)[A-Za-z0-9._%:\\[\\]-]{1,255}$",
      +      "type": "string"
      +    },
      +    "identity_agent": {
      +      "pattern": "^(\\/|[A-Za-z]:[\\\\/])[^\\s\"'`]*$",
      +      "type": "string"
      +    },
      +    "identity_file": {
      +      "pattern": "^(\\/|[A-Za-z]:[\\\\/])[^\\s\"'`]*$",
      +      "type": "string"
      +    },
      +    "known_hosts_file": {
      +      "pattern": "^(\\/|[A-Za-z]:[\\\\/])[^\\s\"'`]*$",
      +      "type": "string"
      +    },
      +    "strict_host_key": {
      +      "const": true,
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "known_hosts_file"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / sessions / items / properties / own_work
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "include:[\"own_work\"]のagent行だけ。席が自分で始めて終わっていない仕事。nullは根拠が無い",
      +  "properties": {
      +    "child_results": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "excluded": {
      +      "type": "number"
      +    },
      +    "exclusions_digest": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "oldest": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "args": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "exe": {
      +              "type": "string"
      +            },
      +            "since": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "exe",
      +            "args",
      +            "since"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "processes": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "task": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "kind": {
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            },
      +            "since": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "kind",
      +            "label",
      +            "since"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "tasks": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "processes",
      +    "excluded",
      +    "child_results",
      +    "exclusions_digest",
      +    "oldest",
      +    "tasks",
      +    "task"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / sessions / items / properties / turn
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "event_cursor": {
      +              "anyOf": [
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "interim_from": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "started_at": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "state": {
      +              "const": "running",
      +              "type": "string"
      +            },
      +            "turn_id": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "state",
      +            "turn_id",
      +            "started_at",
      +            "event_cursor",
      +            "interim_from"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "state": {
      +              "const": "idle",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "include:[\"turn\"]のagent行だけ。席の今の番。nullは今は読めない"
      +}
  5. Changed1 schema field changedv0.70.91
    • changedOutput schema / properties / sessions / items / properties / harness / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "claude-code",
      -      "codex-cli",
      -      "grok-cli",
      -      "cursor-cli",
      -      "antigravity-cli"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "claude-code",
      +      "claude-machine",
      +      "codex-cli",
      +      "grok-cli",
      +      "cursor-cli",
      +      "antigravity-cli"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. Changed3 schema fields changedv0.70.39
    • addedOutput schema / properties / sessions / items / properties / current_command / description
      Added value: +"前面コマンド。休止などの席は状態名(hibernated等)、端末が消えたClaudeの席(コンテナ再起動等)は\"vanished\"。次の送信で再開する"
    • addedOutput schema / properties / sessions / items / properties / last_input_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Claude agent rows: the last input Aiterm typed into this launch"
      +}
    • addedOutput schema / properties / sessions / items / properties / limit_end
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "at": {
      +          "type": "string"
      +        },
      +        "continued": {
      +          "type": "boolean"
      +        },
      +        "hold": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "armed",
      +                "cancelled"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "reset_at": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "at",
      +        "reset_at",
      +        "continued",
      +        "hold"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Claude agent rows: the usage limit that ended the turn after last_input_at (that turn is over; no Stop follows). continued: Claude recorded work after it. hold: Claude's automatic continue is armed, or was cancelled (pty_key Escape cancels an armed hold)"
      +}
  7. Changed1 schema field changedv0.63.7
    • addedOutput schema / properties / sessions / items / properties / launch_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "一覧取得時のmanaged起動ID。通常PTYやmetadata不明時はnull、旧remote版は省略。操作時のfresh binding検証の代わりにはしない"
      +}
  8. Changed1 schema field changedv0.62.2
    • changedOutput schema / properties / sessions / items / properties / harness / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "claude-code",
      -      "codex-cli",
      -      "grok-cli",
      -      "cursor-cli"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "claude-code",
      +      "codex-cli",
      +      "grok-cli",
      +      "cursor-cli",
      +      "antigravity-cli"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  9. Changed1 schema field changedv0.60.1
    • addedOutput schema / properties / sessions / items / properties / vendor_session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "agent sessionのharness側の会話ID。Claude CodeとGrokは起動時に--session-idで渡した値(席の中で会話を移した後は追わない)、CodexとCursorは分かった後の値。通常PTYと、まだ分からない席はnull"
      +}
  10. Changed1 schema field changedv0.39.1
    • addedInput schema / properties / remote
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "別端末のAitermで実行する時のSSH接続情報。hostだけならssh_configの接続名として使う。Aitermは接続情報を保存・管理しない。passphraseは会話記録に残るため、ssh-agentかpassphrase_env(環境変数名)を推奨する。",
      +  "properties": {
      +    "host": {
      +      "pattern": "^(?!-)[A-Za-z0-9._%:\\[\\]-]{1,255}$",
      +      "type": "string"
      +    },
      +    "identity_file": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "passphrase": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "passphrase_env": {
      +      "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
      +      "type": "string"
      +    },
      +    "port": {
      +      "maximum": 65535,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "ssh_options": {
      +      "items": {
      +        "pattern": "^[A-Za-z][A-Za-z0-9]*=[^\\r\\n]*$",
      +        "type": "string"
      +      },
      +      "maxItems": 32,
      +      "type": "array"
      +    },
      +    "user": {
      +      "pattern": "^(?!-)[A-Za-z0-9._@\\\\-]{1,128}$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "host"
      +  ],
      +  "type": "object"
      +}
  11. Changed2 schema fields changedv0.35.0
    • addedInput schema / properties / env_keys
      Added value: +{
      +  "description": "帰属確認用の非秘密環境変数名。指定したキーだけを返す",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "observed_at": {
      +      "type": "string"
      +    },
      +    "schema": {
      +      "const": "aiterm.pty-list-result.v1",
      +      "type": "string"
      +    },
      +    "sessions": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "attached": {
      +            "type": "boolean"
      +          },
      +          "current_command": {
      +            "type": "string"
      +          },
      +          "environment": {
      +            "additionalProperties": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "harness": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "claude-code",
      +                  "codex-cli",
      +                  "grok-cli",
      +                  "cursor-cli"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "height": {
      +            "type": "number"
      +          },
      +          "session_id": {
      +            "type": "string"
      +          },
      +          "width": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "session_id",
      +          "current_command",
      +          "attached",
      +          "width",
      +          "height",
      +          "harness",
      +          "environment"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "schema",
      +    "observed_at",
      +    "sessions"
      +  ],
      +  "type": "object"
      +}
  12. First observedv0.20.2

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. Listing implies a non-mutating read, and the description usefully discloses the per-row contents, but it is silent on side effects, whether disconnected/dead sessions appear, ordering, or any permission requirements.

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?

A single front-loaded sentence with a parenthetical field list; nothing is wasted. It is however so terse that no secondary guidance sentence was added where one would have helped.

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

Completeness3/5

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

An output schema exists, so return values need no explanation. But with a nested optional SSH remote block and include/env_keys extras, the description should at least note that the tool can query a remote Aiterm host and that include adds extra per-seat facts; omitting this leaves a real gap.

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?

All three parameters (remote, include, env_keys) have full schema descriptions, so the baseline applies. The tool description adds nothing about them — notably the nested SSH remote block and the include extras (turn, own_work) are explained only in the schema.

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

Purpose4/5

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

Names a concrete verb+resource (list held PTY sessions) and enumerates what each row carries: name, current foreground command, attach state, size, agent info. That distinguishes it from pty_read/pty_observe, which act on a single session, though the description never states the distinction itself.

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

Usage Guidelines2/5

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

No when-to-use or when-not guidance. It never says to call this instead of pty_observe/pty_read to discover sessions, nor when the include or remote options should be used. An agent must infer the 'discovery' role purely from the word 一覧 (list).

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