Skip to content

toolmark-monorepo / @toolmark/core / toLlmName

Function: toLlmName() ​

toLlmName(fullName): string

Defined in: packages/core/src/names.ts:19

LLM-safe tool name: every . becomes __; if the result is longer than 64 characters it is truncated to 55 characters + _ + the 8-hex FNV-1a hash of the full name. The result matches ^[a-zA-Z0-9_-]{1,64}$ for every valid tool name.

Parameters ​

fullName ​

string

A valid full tool name.

Returns ​

string