| Method | Description |
|---|---|
| run(line) | Send a line to an idle terminal. |
| output(options) | Read output after a cursor and refresh state. |
| preview() | Get the current preview URL, if a port is published. |
| interrupt() | Interrupt the running command while keeping the terminal. |
| kill() | Stop and close the terminal. |
The instance also exposes id, name, command, storageId, cwd, status, busy, exitCode, by, startedAt, port and url. toJSON() returns the serializable public state without the client.