MCPcopy Create free account
hub / github.com/adobe/react-spectrum / sharedPageTools

Function sharedPageTools

packages/dev/s2-docs/scripts/generateMcpb.mjs:11–24  ·  view source on GitHub ↗
(libraryLabel, toolPrefix)

Source from the content-addressed store, hash-verified

9const assetsDir = path.join(scriptDir, '../assets');
10
11const sharedPageTools = (libraryLabel, toolPrefix) => [
12 {
13 name: `list_${toolPrefix}_pages`,
14 description: `Returns a list of available pages in the ${libraryLabel} docs.`
15 },
16 {
17 name: `get_${toolPrefix}_page_info`,
18 description: 'Returns page description and list of sections for a given page.'
19 },
20 {
21 name: `get_${toolPrefix}_page`,
22 description: 'Returns the full markdown content for a page, or a specific section if provided.'
23 }
24];
25
26const libraries = {
27 s2: {

Callers 1

generateMcpb.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected