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).
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": {
"id": "<id>"
},
"name": "process_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Internal process ID. | |
| cols | No | Optional: resize width first. | |
| rows | No | Optional: resize height first. |