ado_list_areas
List available project areas in Azure DevOps to organize work items and track development progress effectively.
Instructions
Lista las áreas disponibles en el proyecto
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:659-691 (handler)The registration and handler implementation for the ado_list_areas tool. It uses getWitApi to fetch area nodes and then formats them into a readable text tree.
server.tool( "ado_list_areas", "Lista las áreas disponibles en el proyecto", {}, async () => { const api = await getWitApi(); const areas = await api.getClassificationNode( currentProject, witInterfaces.TreeStructureGroup.Areas, undefined, 10 ); function formatAreas( node: witInterfaces.WorkItemClassificationNode, indent: string = "" ): string { let result = `${indent}${node.name}\n`; if (node.children) { for (const child of node.children) { result += formatAreas(child, indent + " "); } } return result; } const result = formatAreas(areas); return { content: [{ type: "text", text: result }], }; } );