Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/skills / frontmatter / parseAllowedToolsValue

Function: parseAllowedToolsValue()

ts
function parseAllowedToolsValue(value): readonly string[] | null;

Defined in: packages/skills/src/frontmatter/index.ts:423

Parse the allowed-tools field. Accepts either a string (with whitespace-separated entries) or a string array. Returns null for unsupported shapes so the validator can attach a typed diagnostic.

Parameters

ParameterType
valueunknown

Returns

readonly string[] | null

Stable