get_buffer
Retrieve scrollback buffer from a PTY session using session ID, with optional line limit from end.
Instructions
Get the scrollback buffer from a PTY session.
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": "get_buffer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of lines to return from end of buffer. Omit for full buffer. | |
| session_id | Yes | The session ID |