Files
langgraphjs/docs
Christian Bromann ef04db316d docs: document first-class graph-state access for ToolNode tools (#2511)
Tools running inside a ToolNode can already read the current graph state
via `getCurrentTaskInput()`, but this was not documented as a
first-class option and the browser-safe variant (passing config
explicitly) was not surfaced.

This adds:

- JSDoc on getCurrentTaskInput documenting the optional config arg and
browser usage
- A ToolNode JSDoc example showing how tools access graph state and
runtime context
- Browser-safe guidance in the agents context docs and the
pass-run-time-values-to-tools how-to (`getCurrentTaskInput(config)`)
- A regression test verifying a ToolNode tool can read graph state via
getCurrentTaskInput(config)

Closes #2506
2026-06-10 15:18:04 -07:00
..
2025-02-28 19:27:01 +13:00
2024-05-14 16:07:50 -07:00
2025-10-17 16:34:43 -07:00