process_screen
Get a clean snapshot of a PTY screen. Avoid garbled fragments from full-screen TUIs (vim, htop, less). The snapshot stays queryable after exit.
Instructions
Snapshot the live screen of a PTY process. For full-screen TUIs (vim, htop, less): the record stream is garbled fragments — use this tool instead of process_read. Screen remains queryable after exit until process_cleanup. Snapshot is pure; passing cols/rows resizes the live PTY first. buffer is 'primary' or 'alternate' (the TUI's alternate screen).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Internal process ID. | |
| cols | No | Optional: resize width first. | |
| rows | No | Optional: resize height first. |