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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
description? | readonly | string | Tool description (description: value) when extractable. | packages/eslint-plugin/src/tool-discovery.ts:72 |
examplesCount | readonly | number | Number of examples declared in the examples: array. | packages/eslint-plugin/src/tool-discovery.ts:74 |
file | readonly | string | Source file the call was found in. | packages/eslint-plugin/src/tool-discovery.ts:66 |
gradingSource | readonly | string | W-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 |
hasExamples | readonly | boolean | Whether examples: is a non-empty array literal. | packages/eslint-plugin/src/tool-discovery.ts:76 |
line | readonly | number | 1-indexed line of the tool( token. | packages/eslint-plugin/src/tool-discovery.ts:68 |
name | readonly | string | Tool name extracted from the name: property when present. | packages/eslint-plugin/src/tool-discovery.ts:70 |
parameterNames | readonly | readonly string[] | Snapshot of identifiers referenced from the inputSchema Zod chain. | packages/eslint-plugin/src/tool-discovery.ts:78 |
source | readonly | string | Raw 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 |
tags | readonly | readonly string[] | Tags declared on the call (best-effort). | packages/eslint-plugin/src/tool-discovery.ts:80 |