## Focus `client.Focus(ctx, body) (*FocusResponse, error)` **post** `/v1/focus` Focus Beeper Desktop and optionally navigate to a specific chat, message, or pre-fill draft text and attachment. ### Parameters - `body FocusParams` - `ChatID param.Field[string]` Optional Beeper chat ID (or local chat ID) to focus after opening the app. If omitted, only opens/focuses the app. - `DraftAttachmentPath param.Field[string]` Optional draft attachment path to populate in the message input field. - `DraftText param.Field[string]` Optional draft text to populate in the message input field. - `MessageID param.Field[string]` Optional message ID. Jumps to that message in the chat when opening. ### Returns - `type FocusResponse struct{…}` Response indicating successful app focus action. - `Success bool` Whether the app was successfully opened/focused. ### Example ```go package main import ( "context" "fmt" "github.com/beeper/desktop-api-go" ) func main() { client := beeperdesktopapi.NewClient( ) response, err := client.Focus(context.TODO(), beeperdesktopapi.FocusParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Success) } ```