tool_result node.
Guides
Add tools
Define Zod-validated tools and expose them to the graph runtime.
A StateWeave tool is a small object with a name, description, schema, and executor.
Pass tools to the agent.
When the model emits a tool operation:
StateWeave validates the args, executes the tool, and inserts the result as a
The next model step sees the tool result as graph state, not as an opaque transcript line.