MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / listPrompts

Function listPrompts

webapp/_webapp/src/query/api.ts:171–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169};
170
171export const listPrompts = async () => {
172 if (!apiclient.hasToken()) {
173 return fromJson(ListPromptsResponseSchema, { prompts: [] });
174 }
175 const response = await apiclient.get("/users/@self/prompts", undefined, {
176 ignoreErrorToast: true,
177 });
178 return fromJson(ListPromptsResponseSchema, response);
179};
180
181export const createPrompt = async (data: PlainMessage<CreatePromptRequest>) => {
182 const response = await apiclient.post("/users/@self/prompts", data);

Callers 1

Calls 3

fromJsonFunction · 0.90
hasTokenMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected