oag-mcp
    Preparing search index...

    Class MethodSearchIndex

    Search index over method records.

    Index
    records: MethodRecord[]

    method records

    • Overview of capabilities grouped by API class, for agents that do not yet know the API's vocabulary.

      Parameters

      • opts: { perClass: number; tag?: string; visible: (r: MethodRecord) => boolean }

        options

        • perClass: number

          method names listed per class

        • Optionaltag?: string

          restrict to a tag or API class (lists all)

        • visible: (r: MethodRecord) => boolean

          filter for records the caller may use

      Returns {
          api: string;
          methodCount: number;
          methods: { id: string; summary?: string }[];
          more: number;
          tags: string[];
      }[]

      groups

    • Ranked search restricted to visible records.

      Parameters

      • query: string

        free text

      • opts: { limit: number; tag?: string; visible: (r: MethodRecord) => boolean }

        options

        • limit: number

          maximum results

        • Optionaltag?: string

          restrict to a tag or API class

        • visible: (r: MethodRecord) => boolean

          filter for records the caller may use

      Returns { hits: SearchHit[]; total: number }

      { hits, total }