MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / update

Function update

ui/src/api/tools.ts:31–37  ·  view source on GitHub ↗
(disabled: string[])

Source from the content-addressed store, hash-verified

29 },
30
31 async update(disabled: string[]): Promise<{ disabled: string[] }> {
32 return fetchJson('/api/tools', {
33 method: 'PUT',
34 headers,
35 body: JSON.stringify({ disabled }),
36 })
37 },
38
39 async detail(name: string): Promise<ToolDetail> {
40 return fetchJson(`/api/tools/${encodeURIComponent(name)}`)

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected