| 9 | const assetsDir = path.join(scriptDir, '../assets'); |
| 10 | |
| 11 | const 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 | |
| 26 | const libraries = { |
| 27 | s2: { |