get_wiki_page_by_title
Retrieve Azure DevOps wiki pages by title instead of exact path, enabling easier navigation and content discovery within project wikis.
Instructions
Find a wiki page by title instead of exact path - useful for navigation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project. | |
| title | Yes | Title or partial title of the page to find. | |
| wiki_identifier | Yes | The name or ID of the wiki. |
Implementation Reference
- Core implementation of the get_wiki_page_by_title tool. Lists wiki pages, matches title in path, retrieves full page content for matches.def get_wiki_page_by_title(self, project, wiki_identifier, title): """ Find wiki page by title instead of exact path. """ pages = self.list_wiki_pages(project, wiki_identifier) for page in pages: # Extract title from path (last part after /) page_title = page["path"].split("/")[-1].replace("-", " ").replace("_", " ") if title.lower() in page_title.lower() or page_title.lower() in title.lower(): try: full_page = self.get_wiki_page(project, wiki_identifier, page["path"]) return full_page except Exception: continue return None
- mcp_azure_devops/server.py:708-730 (schema)Input schema definition for the get_wiki_page_by_title tool, specifying parameters project, wiki_identifier, and title.types.Tool( name="get_wiki_page_by_title", description="Find a wiki page by title instead of exact path - useful for navigation.", 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." }, "title": { "type": "string", "description": "Title or partial title of the page to find." }, }, "required": ["project", "wiki_identifier", "title"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:708-730 (registration)Registration of the get_wiki_page_by_title tool in the MCP server tools list.types.Tool( name="get_wiki_page_by_title", description="Find a wiki page by title instead of exact path - useful for navigation.", 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." }, "title": { "type": "string", "description": "Title or partial title of the page to find." }, }, "required": ["project", "wiki_identifier", "title"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:1027-1036 (handler)Server-side dispatch handler that calls the client method and formats the response for the tool.elif name == "get_wiki_page_by_title": page = self.client.get_wiki_page_by_title(**arguments) if page: return { "path": page.page.path, "url": page.page.url, "content": page.page.content, } else: return {"message": f"No page found with title '{arguments['title']}'"}