Skip to Content

getServerTools

getServerTools(options: ServerToolsOptions): Promise<ServerTool[]>

Defined in: src/lib/tools/serverTools.ts:362 

Get server tools with caching support.

Flow:

  1. Check localStorage cache
  2. If cache valid and not force refresh, return cached tools
  3. Otherwise, fetch from API, cache, and return
  4. On fetch failure, return cached tools if available (stale-while-error)

Parameters

ParameterType

options

ServerToolsOptions

Returns

Promise<ServerTool[]>

Last updated on