Send worktree input
POST /api/v1/projects/{projectId}/{agentType}/worktrees/{wid}/input
POST
/api/v1/projects/{projectId}/{agentType}/worktrees/{wid}/input
Sends text to a worktree’s terminal via tmux send-keys. Uses literal mode to prevent key-name interpretation. If pressEnter is true (default), appends Enter after the text. Enables headless/CI integrations without a WebSocket.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
string
Project ID
agentType
required
string
Agent type
wid
required
string
Worktree ID
Request Body required
Section titled “Request Body required ”Input text
Responses
Section titled “ Responses ”No Content
Bad Request
object
code
string
error
string
Not Found
object
code
string
error
string
Internal Server Error
object
code
string
error
string