get_wikis
Retrieve all wiki pages from an Azure DevOps project to access documentation and collaborative content.
Instructions
List all wikis in the project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/wiki/get.ts:12-27 (handler)The primary handler function that executes the 'get_wikis' tool logic: initializes the Azure DevOps connection, retrieves all wikis via the Wiki API, and formats the result as JSON text content.export async function getWikis(args: Record<string, never>, config: AzureDevOpsConfig) { AzureDevOpsConnection.initialize(config); const connection = AzureDevOpsConnection.getInstance(); const wikiApi = await connection.getWikiApi(); const wikis = await wikiApi.getAllWikis(config.project); return { content: [ { type: 'text', text: JSON.stringify(wikis, null, 2), }, ], }; }
- src/tools/wiki/index.ts:9-15 (schema)Schema definition for the 'get_wikis' tool, including name, description, and input schema specifying no required parameters.name: 'get_wikis', description: 'List all wikis in the project', inputSchema: { type: 'object', properties: {}, }, },
- src/tools/wiki/index.ts:94-94 (registration)Registration of the getWikis handler wrapper within the wikiTools.initialize function, linking to the actual implementation.getWikis: (args: Record<string, never>) => getWikis(args, config),
- src/index.ts:139-141 (registration)Main server switch-case registration that routes 'get_wikis' tool calls to the wiki tools instance.case 'get_wikis': result = await tools.wiki.getWikis(request.params.arguments); break;