clear_buffer
Clears both the visible screen and scrollback buffer in iTerm2. Optionally specify a session UUID to target a specific session.
Instructions
Clear both the visible screen and the scrollback buffer.
Uses the iTerm2-proprietary OSC 1337 ; ClearScrollback control sequence
(https://iterm2.com/documentation-escape-codes.html).
:param session_id: Target session UUID. Defaults to the active session.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_buffer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |