terminal.mouse_scroll
Scroll terminal TUI content (chat logs, file viewers) by simulating mouse wheel events at specified column and row positions. Requires mouse mode enabled in the target program.
Instructions
Scroll the mouse wheel at a specific position in the terminal. Sends SGR-1006 scroll sequences that interactive TUI programs understand. Useful for scrolling through long content in TUI apps (chat history, logs, file viewers). The child process must have mouse mode enabled for scroll events to take effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID from terminal.start — use exact value | |
| col | Yes | 1-based column (x position, left=1) | |
| row | Yes | 1-based row (y position, top=1) | |
| direction | Yes | Scroll direction | |
| lines | No | Number of scroll ticks (1-20, each ~3 lines) | |
| shift | No | Shift key held (fast scroll in some apps) | |
| alt | No | Alt key held | |
| ctrl | No | Ctrl key held |