Skip to content

Graphorin API reference v0.12.1


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

Interface: DiscoveredTool

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

Stable

Properties

PropertyModifierTypeDescriptionDefined in
description?readonlystringTool description (description: value) when extractable.packages/eslint-plugin/src/tool-discovery.ts:72
examplesCountreadonlynumberNumber of examples declared in the examples: array.packages/eslint-plugin/src/tool-discovery.ts:74
filereadonlystringSource file the call was found in.packages/eslint-plugin/src/tool-discovery.ts:66
gradingSourcereadonlystringW-044: the 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.packages/eslint-plugin/src/tool-discovery.ts:93
hasExamplesreadonlybooleanWhether examples: is a non-empty array literal.packages/eslint-plugin/src/tool-discovery.ts:76
linereadonlynumber1-indexed line of the tool( token.packages/eslint-plugin/src/tool-discovery.ts:68
namereadonlystringTool name extracted from the name: property when present.packages/eslint-plugin/src/tool-discovery.ts:70
parameterNamesreadonlyreadonly string[]Snapshot of identifiers referenced from the inputSchema Zod chain.packages/eslint-plugin/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.packages/eslint-plugin/src/tool-discovery.ts:86
tagsreadonlyreadonly string[]Tags declared on the call (best-effort).packages/eslint-plugin/src/tool-discovery.ts:80