terminal_read
Reads the current output buffer from a terminal session so you can inspect command results, errors, prompts, and state changes after sending input.
Instructions
Read the current output buffer from a terminal session. CRITICAL: Always call this after sending input to see command results, error messages, prompts, or any terminal output. The terminal session maintains its state, so you should read frequently to stay updated on the current state, especially after commands that might change the working directory, environment, or running processes.
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": {
"sessionId": "<sessionId>"
},
"name": "terminal_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Terminal session ID to read output from |