Polyman Documentation - v3.1.0
    Preparing search index...

    Function findTextToolCall

    • Returns the tool name when text has a JSON object with "name": "<known tool>", or a line like verify({...}) with a known tool name. Returns null otherwise.

      Parameters

      • text: string
      • toolNames: readonly string[]

      Returns string | null