terminal_screenshot
Captures the current rendered terminal screen for a given session, stripping ANSI escape sequences so AI agents can inspect visible CLI output.
Instructions
Capture what the user currently sees in the terminal — the rendered text grid with ANSI escape sequences stripped. This is the equivalent of looking at the 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": {
"session_id": "<session_id>"
},
"name": "terminal_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID returned by terminal_spawn |