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

Function extractReadPath

src/agent/read-ledger.ts:60–64  ·  view source on GitHub ↗
(toolName: string, args: unknown)

Source from the content-addressed store, hash-verified

58
59/** Pure: pull the path a read tool just consumed. null for non-read tools. */
60export function extractReadPath(toolName: string, args: unknown): string | null {
61 if (!READ_TOOLS.has(toolName)) return null;
62 const p = (args as any)?.path;
63 return p ? String(p) : null;
64}
65
66export type GateVerdict =
67 | { ok: true }

Callers 2

executeToolCallMethod · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected