get_iterm_tab_logs
Retrieve terminal scrollback from an iTerm2 session by session ID, choosing how many recent lines to return.
Instructions
Get scrollback/log contents for one iTerm2 session, identified by the session_id returned from list_iterm_tabs. Returns the last max_lines lines.
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": "get_iterm_tab_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_lines | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |