The model is given two tools: one that searches npm for packages that have an associated GitHub repository, and one that looks up a repository's star count. Ask a question that needs both and the model decides which tools to call, in which order, and how to feed one result into the next. Every tool call is logged below as it happens.
This demo requires the flag
chrome://flags/#prompt-api-tool-use to be enabled.