MCPcopy Index your code
hub / github.com/xerrors/Yuxi / getTools

Function getTools

web/src/apis/tool_api.js:15–18  ·  view source on GitHub ↗
(category = null)

Source from the content-addressed store, hash-verified

13 * @returns {Promise} - 工具列表
14 */
15export const getTools = async (category = null) => {
16 const query = category ? `?${new URLSearchParams({ category }).toString()}` : ''
17 return apiAdminGet(`${BASE_URL}${query}`)
18}
19
20/**
21 * 获取工具选项列表(用于下拉选择)

Callers

nothing calls this directly

Calls 1

apiAdminGetFunction · 0.90

Tested by

no test coverage detected