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

Function runCommand

src/mcp/command-tools.ts:101–108  ·  view source on GitHub ↗
(
  client: AgentDeviceClient,
  name: CommandName,
  input: unknown,
)

Source from the content-addressed store, hash-verified

99}
100
101async function runCommand(
102 client: AgentDeviceClient,
103 name: CommandName,
104 input: unknown,
105): Promise<unknown> {
106 const commandSurface = await import('../commands/command-surface.ts');
107 return await commandSurface.runCommand(client, name, input);
108}
109
110function readMcpToolConfig(input: unknown): McpToolConfig {
111 if (!input || typeof input !== 'object' || Array.isArray(input)) {

Callers 9

client.test.tsFile · 0.90
listLocalMacAppsFunction · 0.50
readPlistJsonWithCommandFunction · 0.50
openTargetFunction · 0.50
closeAppFunction · 0.50
readTextFunction · 0.50
writeTextFunction · 0.50
captureFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected