persistentPty
Read the session's most recently controlled terminal
Changed onRead the last physical rows without changing selection or taking control. Omitted lines uses the live terminal height; larger counts include retained history. Blank rows are preserved. Screen dimensions and cursor remain relative to the live screen. Returns null when no current terminal exists. Selection is server-local and resets on restart. Experimental: may change without compatibility guarantees.
get/api/experimental/session/{sessionID}/terminal/read
Request
- Base URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/experimental/session/{sessionID}/terminal/read
- Authnone required
Path parameters
sessionIDstring required
Query parameters
linesstring
Response
Success
Changes
- info
api operation id
server.experimental.persistentPty.readremoved and replaced withexperimental.persistentPty.read
- info