---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/plan/functions/nodeById.md
---

# Function: nodeById()

```ts
function nodeById(
  view: RawPlanView | PlanGraphView,
  id: string,
): PlanNode | undefined;
```

Defined in: [src/batteries/orchestration/plan.ts:115](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/plan.ts#L115)

Look up a node by id.

## Parameters

| Parameter | Type                                                                                                           | Description          |
| --------- | -------------------------------------------------------------------------------------------------------------- | -------------------- |
| `view`    | | [`RawPlanView`](../../types/interfaces/RawPlanView.md) | [`PlanGraphView`](../interfaces/PlanGraphView.md) | The graph to search. |
| `id`      | `string`                                                                                                       | The node id to find. |

## Returns

[`PlanNode`](../../types/type-aliases/PlanNode.md) | `undefined`

The node, or `undefined` when no node carries that id.
