read_output
Retrieve the last N lines of output from a specific iTerm2 session using its session ID, so agents can inspect recent terminal activity.
Instructions
Read the last N lines of output from a specific iTerm2 session by its session ID.
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": "read_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of lines to return from the end (default: 100) | |
| session_id | Yes | The unique session ID (UUID) from list_sessions |