Skip to content

Get focus state

GET
/api/v1/focus

Returns the aggregated viewer focus state across all connected clients.

OK

object
activeViewers

ActiveViewers is the total number of focused client instances.

integer
focusedWorktrees

FocusedWorktrees maps “projectId:agentType” keys to deduplicated worktree ID lists.

object
key
additional properties
Array<string>