MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / which

Function which

src/tools/computer/use.ts:81–88  ·  view source on GitHub ↗
(cmd: string)

Source from the content-addressed store, hash-verified

79}
80
81async function which(cmd: string): Promise<string | null> {
82 try {
83 const { stdout } = await runCmd('which', [cmd]);
84 return stdout.trim() || null;
85 } catch {
86 return null;
87 }
88}
89
90// ─────────────────────────────────────────────────────────────────────────────
91// computer_use_screenshot

Callers 2

executeMethod · 0.70
executeMethod · 0.70

Calls 1

runCmdFunction · 0.85

Tested by

no test coverage detected