Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/eslint-plugin / discoverToolCallsInSource

Function: discoverToolCallsInSource()

ts
function discoverToolCallsInSource(file, source): DiscoveredTool[];

Defined in: tool-discovery.ts:183

Discover every tool({...}) invocation in a source string. The returned findings are stable + frozen so callers can pass them straight into a JSON report.

Parameters

ParameterType
filestring
sourcestring

Returns

DiscoveredTool[]

Stable