create_wiki_pages_batch
Create multiple wiki pages simultaneously in Azure DevOps to streamline bulk documentation tasks and maintain project wikis efficiently.
Instructions
Create multiple wiki pages at once for bulk operations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages_data | Yes | Array of page objects to create. | |
| project | Yes | The name or ID of the project. | |
| wiki_identifier | Yes | The name or ID of the wiki. |
Implementation Reference
- Core handler function that implements the batch creation of wiki pages by iterating over the pages_data list, calling create_wiki_page for each, and collecting success/error results.def create_wiki_pages_batch(self, project, wiki_identifier, pages_data): """ Create multiple wiki pages at once. pages_data: list of {"path": str, "content": str} """ results = [] for page_data in pages_data: try: result = self.create_wiki_page( project=project, wiki_identifier=wiki_identifier, path=page_data["path"], content=page_data["content"] ) results.append({ "path": page_data["path"], "status": "success", "result": result }) except Exception as e: results.append({ "path": page_data["path"], "status": "error", "error": str(e) }) return results
- mcp_azure_devops/server.py:786-822 (registration)Tool registration in the MCP server's tools list, including name, description, and complete input schema definition.types.Tool( name="create_wiki_pages_batch", description="Create multiple wiki pages at once for bulk operations.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, "wiki_identifier": { "type": "string", "description": "The name or ID of the wiki." }, "pages_data": { "type": "array", "description": "Array of page objects to create.", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "The path of the wiki page to create." }, "content": { "type": "string", "description": "The content of the wiki page." } }, "required": ["path", "content"] } }, }, "required": ["project", "wiki_identifier", "pages_data"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:1043-1044 (handler)Dispatch handler in the MCP server's _execute_tool method that calls the client implementation with unpacked arguments.elif name == "create_wiki_pages_batch": return self.client.create_wiki_pages_batch(**arguments)
- mcp_azure_devops/server.py:790-820 (schema)Input schema definition for the create_wiki_pages_batch tool, specifying parameters project, wiki_identifier, and pages_data array with structure."type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, "wiki_identifier": { "type": "string", "description": "The name or ID of the wiki." }, "pages_data": { "type": "array", "description": "Array of page objects to create.", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "The path of the wiki page to create." }, "content": { "type": "string", "description": "The content of the wiki page." } }, "required": ["path", "content"] } }, }, "required": ["project", "wiki_identifier", "pages_data"], "additionalProperties": False