get_node_ancestry
Retrieve the complete hierarchical path from root to a specific node in a plan to understand its position and dependencies within the project structure.
Instructions
Get the path from root to a specific node
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | Plan ID | |
| node_id | Yes | Node ID |
Implementation Reference
- src/tools.js:262-273 (registration)Registration of the 'get_node_ancestry' tool in the ListTools response, including name, description, and input schema.{ name: "get_node_ancestry", description: "Get the path from root to a specific node", inputSchema: { type: "object", properties: { plan_id: { type: "string", description: "Plan ID" }, node_id: { type: "string", description: "Node ID" } }, required: ["plan_id", "node_id"] } },
- src/tools.js:609-618 (handler)Handler implementation for the 'get_node_ancestry' tool. Extracts plan_id and node_id from arguments and calls the backend API endpoint to retrieve the ancestry path from root to the specified node.if (name === "get_node_ancestry") { const { plan_id, node_id } = args; // Get node ancestry const response = await apiClient.axiosInstance.get( `/plans/${plan_id}/nodes/${node_id}/ancestry` ); return formatResponse(response.data); }