Skip to content

Graphorin API reference v0.12.1


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

Function: discoverToolCallsInSource()

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

Defined in: packages/eslint-plugin/src/tool-discovery.ts:209

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