New Tool Radar

AI Agents & Automation

How to Test a Langflow Agent in the Playground by Asking What Tools It Uses

Ask a Langflow agent in the Playground which tools it uses, then test each tool with a question only that tool can answer.

Schematic diagram with three steps: Open the Playground, Ask about the tools, then Test each tool.

The Playground is where a Langflow flow is tested, and the simplest useful test is to ask the agent what tools it is using. The Langflow documentation uses exactly that question as its example, because the answer proves the tools are wired before any real question is asked.

Before you start

You need a Langflow agent flow with at least one tool connected and a model provider key saved. Write down the tools you expect the agent to name before you open the Playground, so a wrong answer is easy to spot.

Ask the tools question first

Open the Playground and ask the agent what tools it is using to answer questions. The reply should list the tools you connected, such as the Calculator and the Web Search tool. If a tool is missing from the reply, check its Tool Mode setting and its connection to the Tools port on the Agent component.

Test each tool with a question only it can answer

For each tool, ask one question that only that tool can answer: a sum for the Calculator, a recent fact for Web Search. A tool that is listed but never called is wired but not understood, and its description needs to say more clearly when it applies.

Worked example: Playground test for a fictional research agent

Maple Research is a fictional research desk. Its agent has a Calculator and a Web Search tool. The table is the test plan.

Test question Tool that should run Pass if
What tools are you using? None Reply names Calculator and Web Search
What is 48 plus 36? Calculator Reply says 84
Who won the match yesterday? Web Search Reply cites a search result

Expected result (UNTESTED): all three tests pass, with the sum returning 84 and the match question citing a search result. We checked the Langflow agents documentation, which uses the tools question as its Playground example, but we did not run the test on a live Langflow instance.

Limits

A Playground test is a manual check, not a regression test. It proves the flow works once, for one question each. For a flow that will run for other people, write the test questions down and re-run them after every change to the flow.

Sources

See all