create_wiki_pages_batch
Create multiple wiki pages simultaneously in Azure DevOps to manage bulk documentation updates efficiently.
Instructions
Create multiple wiki pages at once for bulk operations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project. | |
| wiki_identifier | Yes | The name or ID of the wiki. | |
| pages_data | Yes | Array of page objects to create. |
Implementation Reference
- The main handler function that implements the batch wiki page creation by iterating through pages_data and calling create_wiki_page for each, returning a list of results with success/error status.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 (schema)The input schema definition for the create_wiki_pages_batch tool, specifying parameters project, wiki_identifier, and pages_data as an array of path/content objects.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 (registration)The dispatch/registration point in the _execute_tool method where the tool call is routed to the client handler.elif name == "create_wiki_pages_batch": return self.client.create_wiki_pages_batch(**arguments)