Skip to content

Graphorin API reference v0.15.1


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

Interface: DiscoveredTool

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

Stable

Properties

PropertyModifierTypeDescriptionDefined in
description?readonlystringTool description (description: value) when extractable.src/tool-discovery.ts:72
examplesCountreadonlynumberNumber of examples declared in the examples: array.src/tool-discovery.ts:74
filereadonlystringSource file the call was found in.src/tool-discovery.ts:66
gradingSourcereadonlystringThe same slice with comments blanked - what discovery parsed and what every grading path (examples PII scan, description/parameter scoring) consumes. Same length and line structure as source.src/tool-discovery.ts:93
hasExamplesreadonlybooleanWhether examples: is a non-empty array literal.src/tool-discovery.ts:76
linereadonlynumber1-indexed line of the tool( token.src/tool-discovery.ts:68
namereadonlystringTool name extracted from the name: property when present.src/tool-discovery.ts:70
parameterNamesreadonlyreadonly string[]Snapshot of identifiers referenced from the inputSchema Zod chain.src/tool-discovery.ts:78
sourcereadonlystringRaw object-literal source (ORIGINAL text, comments included). Useful for tests + as a context blob when the CLI needs to surface the original source in a report.src/tool-discovery.ts:86
tagsreadonlyreadonly string[]Tags declared on the call (best-effort).src/tool-discovery.ts:80