persistentPty

Read the session's most recently controlled terminal

Changed on

Read 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 URL
    https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://opencode.ai/api/experimental/session/{sessionID}/terminal/read
  • Auth
    none required

Path parameters

sessionIDstring required

Query parameters

linesstring

Response

Success

Changes

    • info

      api operation id server.experimental.persistentPty.read removed and replaced with experimental.persistentPty.read