pty_connect
Create or reconnect to an interactive PTY session on a devbox, returning a WebSocket URL for sending commands. Reusing a session name resumes the same live session.
Instructions
Create or reconnect to an interactive PTY session on a devbox.
Reusing the same session_name reconnects to the same logical PTY session
while it is still alive. The returned connect_url is the WebSocket
endpoint used by pty_send_command.
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_name": "<session_name>"
},
"name": "pty_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Initial terminal width in character cells (1..1000). | |
| rows | No | Initial terminal height in character cells (1..1000). | |
| session_name | Yes | Client-chosen PTY session name (``[A-Za-z0-9_-]``, 1..256). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||