MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / listTools

Function listTools

client/src/App.tsx:1007–1019  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1005 };
1006
1007 const listTools = async () => {
1008 const response = await sendMCPRequest(
1009 {
1010 method: "tools/list" as const,
1011 params: nextToolCursor ? { cursor: nextToolCursor } : {},
1012 },
1013 ListToolsResultSchema,
1014 "tools",
1015 );
1016 setTools(response.tools);
1017 setNextToolCursor(response.nextCursor);
1018 cacheToolOutputSchemas(response.tools);
1019 };
1020
1021 const callTool = async (
1022 name: string,

Callers 2

AppFunction · 0.70
AppsTabFunction · 0.50

Calls 2

cacheToolOutputSchemasFunction · 0.90
sendMCPRequestFunction · 0.85

Tested by

no test coverage detected