Skip to content
Docs

Search Tools

Search Tools narrows a large tool set down to the relevant tools before an Agent request is built. An agent offered dozens of tools on every turn is slower and less accurate; this node keeps the offer small without you naming tools by hand. You find it on the node picker’s AI shelf.

Connect the node’s Context output handle to the agent’s Context handle.

The Search Tools node's settings form, with the fields described below
The Search Tools node's settings form, with the fields described below
FieldTypeDefaultDescription
Enabled above (enabledAbove)integer ✦ (optional) — The tool-count threshold above which the catalogue is narrowed by keyword; at or below it the node passes every tool through unchanged.
Keywords (keywords)string ✦ (optional) — Explicit keywords matched against tool names and descriptions to decide which tools survive narrowing.
How to shrink the tool set (mode)one of filter, defer (optional) filter How the tool set is shrunk. Narrowing by keyword decides once, before the agent runs. Letting the agent search shows it a few essential tools and a search tool, and every tool it finds stays available for the rest of the run.

Fields marked ✦ accept expressions.

The node runs no step of its own and emits no output. It shapes the agent’s context before each request:

  • With enabledAbove or fewer tools (15 by default), every tool passes through unchanged, so small flows are unaffected.
  • Above the threshold, only the tools whose name or description contains a keyword survive. Keywords come from the keywords field, or, when that is empty, from the words of the agent’s current prompt.
  • Tools the platform marks essential for the agent’s job are always kept, and when no tool matches, the agent gets the full set rather than no tools.

The match is a case-insensitive substring check against tool names and descriptions, not a semantic search. The keywords field is split on commas and newlines only, so invoice pdf is one keyword that has to appear as that exact phrase, not two words matched separately. Tool names are the names the agent sees, such as the per-operation names an OpenAPI Operation Pack produces.

You can attach more than one context-shaping node to the same agent. They run as a chain, ordered by when the nodes were added to the flow, and each shapes the tools the next receives. A common pattern is a Tool Filter that removes the tools the agent should never use, then Search Tools to narrow what remains to the current request.

The Smoke / Context shaping — search tools template gives an agent a Petstore OpenAPI Operation Pack on its Tools handle and a Search Tools node on its Context handle, configured with:

  • keywords: pet status
  • enabledAbove: 1

That pack holds a single operation, and pet status is one keyword rather than two, so nothing in the pack matches it. The agent receives the whole pack either way: a tool count at or below the threshold passes everything through, and above the threshold the no-match fallback does the same. The template shows the wiring rather than the narrowing.

In your own flows, leave keywords empty and the prompt drives the match: when a run’s prompt mentions invoices, the agent sees the invoice-related tools instead of the whole catalogue.

  • Keyword matching is literal. A tool whose description never uses the words your users use is dropped even when it would have helped; set explicit keywords when your tools and your users speak different vocabularies.
  • Prompt-driven keywords are the prompt’s words of four or more characters, so very short terms in a prompt do not match anything.