Capture the screen
GET
/api/panes/{pane_id}/capture
Code sample: Shell / cURL
curl --request GET \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/capture \ --header 'Authorization: Bearer <token>'The pane as rendered plain text, like tmux capture-pane -pJ.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pane_id
required
string format: uuid
Pane ID
Query Parameters
Section titled “Query Parameters”scrollback
boolean
Include retained scrollback above the screen.
history
integer
Include at most this many rows of history (tmux capture-pane -S -N).
lines
integer
Only the last N lines.
Responses
Section titled “Responses”The rendered text
Media typetext/plain
string
A malformed ID or query parameter
Media typetext/plain
string
Missing or wrong access token
Media typetext/plain
string
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)
No such pane
Media typetext/plain
string
The shell failed to start
Media typetext/plain
string