import{Ada as x}from"./cli-0.5.4-9c6r1fjg.mjs";import{Kda as p,Wda as s}from"./cli-0.5.4-2dw33ms6.mjs";import{ima as r}from"./cli-0.5.4-jmc3bzbn.mjs";import{Zma as n}from"./cli-0.5.4-aacw1src.mjs";var c="ToolSearch";var h=()=>{};function S(){return p("tengu_glacier_2xr",!1)?"Deferred tools appear by name in <system-reminder> messages.":"Deferred tools appear by name in <available-deferred-tools> messages."}function y(O){if(O.alwaysLoad===!0)return!1;if(O.isMcp===!0)return!0;if(O.name===c)return!1;return O.shouldDefer===!0}function z(O){return O.name}function G(){return N+S()+b}var N=`Fetches full schema definitions for deferred tools so they can be called.

`,b=` Until fetched, only the name is known — there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' complete JSONSchema definitions inside a <functions> block. Once a tool's schema appears in that result, it is callable exactly like any tool defined at the top of the prompt.

Result format: each matched tool appears as one <function>{"description": "...", "name": "...", "parameters": {...}}</function> line inside the <functions> block — the same encoding as the tool list at the top of this prompt.

Query forms:
- "select:Read,Edit,Grep" — fetch these exact tools by name
- "notebook jupyter" — keyword search, up to max_results best matches
- "+slack send" — require "slack" in the name, rank by remaining terms`;var d=n(()=>{r();s();x();h();h()});
export{c as sT,y as tT,z as uT,G as vT,d as wT};
