Skip to content

Graphorin API reference v0.15.1


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

Function: discoverToolCallsInSource() ​

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

Defined in: src/tool-discovery.ts:209

Stable

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[]