CovenDocs

Forward input to a live session

1 min read

POST
/sessions/{id}/input

Path Parameters

id*string

The session id (stable across daemon restarts).

Request Body

application/json
  1. body
data*string

Raw input bytes (UTF-8) to forward to the harness PTY. Include trailing newlines explicitly.

Response Body

Input was accepted and forwarded to the PTY.

application/json
  1. response

Acknowledgement that a live-session control request was accepted.

ok*boolean
accepted*boolean
curl -X POST 'http://localhost:3000/api/v1/sessions/session-1/input' \  -H 'Content-Type: application/json' \  -d '{  "data": "continue with the next failing test\n"}'
{  "ok": true,  "accepted": true}
Was this page helpful?No

Last updated on