MCPcopy Create free account
hub / github.com/callstack/agent-device / readKeyboardInput

Function readKeyboardInput

src/commands/system/index.ts:284–289  ·  view source on GitHub ↗
(positionals: string[])

Source from the content-addressed store, hash-verified

282}
283
284function readKeyboardInput(positionals: string[]): Record<string, unknown> {
285 if (positionals.length > 1) {
286 throw new AppError('INVALID_ARGS', 'keyboard accepts at most one action argument.');
287 }
288 return compactRecord({ action: readKeyboardAction(positionals[0]) });
289}
290
291function readClipboardInput(positionals: string[]): Record<string, unknown> {
292 const action = positionals[0]?.toLowerCase();

Callers 1

keyboardCliReaderFunction · 0.85

Calls 2

compactRecordFunction · 0.90
readKeyboardActionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…