MCPcopy Index your code
hub / github.com/callstack/agent-device / handleFocusCommand

Function handleFocusCommand

src/core/dispatch-interactions.ts:71–78  ·  view source on GitHub ↗
(
  interactor: Interactor,
  positionals: string[],
)

Source from the content-addressed store, hash-verified

69}
70
71export async function handleFocusCommand(
72 interactor: Interactor,
73 positionals: string[],
74): Promise<Record<string, unknown>> {
75 const { x, y } = readPoint(positionals, 'focus requires x y');
76 await interactor.focus(x, y);
77 return { x, y, ...successText(`Focused (${x}, ${y})`) };
78}
79
80export async function handleTypeCommand(
81 interactor: Interactor,

Callers 1

dispatch.tsFile · 0.90

Calls 3

successTextFunction · 0.90
focusMethod · 0.80
readPointFunction · 0.70

Tested by

no test coverage detected